php & performance
| From: | Michal Dvoracek | Date: | Wed, 15 May 2002 07:10:09 +0000 |
| Subject: | php & performance | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97680@lists.php.net to get a copy of this message | ||
Hello,
what is better syntax (for perfomance option, not code-style)
e.g. html code out of php tags
<table>
<?php
while (...) {
?>
<tr>
<td><?php echo $something; ?></td>
<td>text</td>
</tr>
<?php
}
?>
</table>
or
<?php
$table = '<table>';
while (...)
$table .=
'<tr><td>'.$something.'</td><td>text</td></tr>';
$table .= '</table>';
?>
Thank you.
Regards,
Michal Dvoracek michal.dvoracek@capitol.cz