Re: Hmmm?
| From: | Keith Jeffery | Date: | Wed, 01 Aug 2001 17:08:26 +0000 |
| Subject: | Re: Hmmm? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60711@lists.php.net to get a copy of this message | ||
No, no, I indent my code normally, just not after the <?php
i.e.
<?php
if($submit) {
for($i=0; $i < count($fileArrray); $i++) {
echo "File $i -> $fileArray[$i]<br>\n";
}
}
?>
Not indenting after the <? tag just makes it easier for me when I have
hundreds of lines of php code following.
"Fredrik Arild Takle" <ftakle@online.no> wrote in message
news:20010801165508.75622.qmail@pb1.pair.com...
> 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" <jeff2619@uidaho.edu> wrote in message
> news:20010801144019.40663.qmail@pb1.pair.com...
> > Simply indent formatting for readability. I personally don't indent
after
> > the <? tag, but to each his/her own.
> >
> >
> > "Kyle Smith" <dbzno1fan@hotmail.com> wrote in message
> > news:OE67QR7Ia6XH4WdMCAR0000652e@hotmail.com...
> > 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: dbzno1fan@hotmail.com
> > AIM: legokiller666
> >
> >
> >
> >
> >
>
>