oh man... it gives me such a headache when i have
to try and make sense of scripts with no indentation
(or arbitrary indentation)... 

it's always fun dealing with things like this  :-)

        if ($this){
print "
        hi
  ";            }
  else {        print "
bye
                        ";
}

> -----Original Message-----
> From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Hmmm?
> 
> 
> I think it's impossible to read/understand my own scripts if i don't do it.
> 
> Do:
> 
> <?php
>   if ($submit) {
>     echo "Counting from 1-32<br>";
>     for ($ii = '1'; $ii <= '32' $ii++) {
>       echo $ii." ";
>     }
>   }
>   echo "<br>All done!";
> ?>
> 
> instead of:
> 
> <?php
> if ($submit) {
> echo "Counting from 1-32<br>";
> for ($ii = '1'; $ii <= '32' $ii++) {
> echo $ii." ";
> }
> }
> echo "<br>All done!";
> ?>
> 
> Best Regards
> Fredrik A. Takle
> 
> "Keith Jeffery" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Simply indent formatting for readability.  I personally don't indent after
> > the <? tag, but to each his/her own.
> >
> >
> > "Kyle Smith" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Whenever i get a php script off a website why is it that most of the main
> > parts in the script have a space from the left border. eg
> >
> > <?php
> >     echo"spazzzzzzz";
> > ?>
> >
> > ????
> >
> > -lk6-
> > http://www.StupeedStudios.f2s.com
> > Home of the burning lego man!
> >
> > ICQ: 115852509
> > MSN: [EMAIL PROTECTED]
> > AIM: legokiller666
> >
> >
> >
> >
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to