Re: here document
| From: | Philip Olson | Date: | Thu, 02 Nov 2000 06:23:57 +0000 |
| Subject: | Re: here document | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23328@lists.php.net to get a copy of this message | ||
Haha, Torben got himself in trouble :-)
> I personally find the following to be rather simple:
>
> <table>
> <tr>
> <td><?=$name?></td>
> <td><?=$email?></td>
> </tr>
> </table>
He mentioned this was a simple example, nothing more and not ideal. But
while we're at it :-) One could do also do (but shouldn't) :
echo '
<table>
<tr>
<td>'.$name.'</td>
<td>'.$email.'</td>
</tr>
</table>';
But anyway, it was just an example. Someone mentioned it's good to have
choices and options , yes. And it takes experience to figure which are
"optimal" for given situations ... And it's fun to try new things just for
the hell of it so you can increase your abilities to read other peoples
code down the road ! So much to learn, so little time ...
Philip