[EMAIL PROTECTED]
On Tue, 13 Jul 2004 20:10:26 +0200, Ferdinand Beyer <[EMAIL PROTECTED]> wrote:
> On 13 Jul 2004 at 11:34, Marc Richards wrote:
>
> > It is, and that is what I currently do, but
> >
> >
> > <?php if ($x == TRUE){ ?>
> > <tr>
> > <td><?= $s_array['name'] ?></td>
> > <td><?= $s_array['classyear'] ?></td>
> > <td><?= $s_array['status'] ?></td>
> > </tr>
> > <? } ?>
> >
> >
> > Is generally less readable (especially in a large page) than:
> >
> > <?php if ($x == TRUE): ?>
> > <tr>
> > <td><?= $s_array['name'] ?></td>
> > <td><?= $s_array['classyear'] ?></td>
> > <td><?= $s_array['status'] ?></td>
> > </tr>
> > <? endif ?>
>
> If you want readability, try using comments!
>
> <? if ($x == TRUE) { ?>
> <tr>
> <td><?= $s_array['name'] ?></td>
> <td><?= $s_array['classyear'] ?></td>
> <td><?= $s_array['status'] ?></td>
> </tr>
> <? } /* end if ($x == TRUE) */ ?>
>
>
> --
> Ferdinand Beyer
> <[EMAIL PROTECTED]>
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php