Marc Richards wrote:
> I guess this is too late for 5.0, and I feel like there is bound to be
> opposition, but this has been bugging me for a while, so I figured I
> would ask.
>
> I use the alternative syntax for control structures almost exclusively
> within my HTML code but I have to revert to braces for do...while. Why
> can't we do this?
>
>
> <? do: ?>
> <tr>
> <td><?= $s_array['name'] ?></td>
> <td><?= $s_array['classyear'] ?></td>
> <td><?= $s_array['status'] ?></td>
> </tr>
> <? while ($s_array = mysql_fetch_array($search_results): ?>
> <? enddowhile ?>
>
>
> It is a little cumbersome, but at least I can keep my syntax consistent.
> Are there parser related problems?
>
>
> Marc
<?php do { ?>
<tr>
<td><?= $s_array['name'] ?></td>
<td><?= $s_array['classyear'] ?></td>
<td><?= $s_array['status'] ?></td>
</tr>
<?php } while ($s_array = mysql_fetch_array($search_results); ?>
is much shorter, ain't it ?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php