note 51463 deleted from control-structures.alternative-syntax by betz
| From: | betz@php.net | Date: | Thu, 31 Mar 2005 12:01:43 +0000 |
| Subject: | note 51463 deleted from control-structures.alternative-syntax by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-87264@lists.php.net to get a copy of this message | ||
Note Submitter: jasperbg at gmail dot com
Reason: spam
----
To archangelq at NOSPAM archangelq dot net
I don't understand your point. Why is:
<table>
<tr>
<?PHP foreach($tableheaderslist as $tableheadername): ?>
<th><?PHP echo $tableheadername ?>
<?PHP endforeach; ?>
</tr>
<?PHP foreach($tablerows as $row): ?>
<tr>
<?PHP foreach($row as $data): ?>
<td>$data</td>
<?PHP endforeach; ?>
<tr>
<?PHP endforeach; ?>
</table>
any better than the normal way:
<table>
<tr>
<?PHP foreach($tableheaderslist as $tableheadername) { ?>
<th><?PHP echo $tableheadername ?>
<?PHP } ?>
</tr>
<?PHP foreach($tablerows as $row) { ?>
<tr>
<?PHP foreach($row as $data) { ?>
<td>$data</td>
<?PHP } ?>
<tr>
<?PHP } ?>
</table>
?? (ignoring the horrible HTML syntax)