Re: Generic expressions interpolation in strings
| From: | Leon Atkinson | Date: | Mon, 06 Jan 2003 17:09:58 +0000 |
| Subject: | Re: Generic expressions interpolation in strings | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93183@lists.php.net to get a copy of this message | ||
> print <<<END
> <table>
> <tr><td>Name:</td><td>{$= text2html($data['name'])
> }</td></tr>
> <tr><td>Address:</td><td><input type="text"
> value="{$=
htmlspecialchars($data['address']) }"</td></tr>
> </table>
> END;
Federico, you can always do this:
?>
<table>
<tr><td>Name:</td><td><?= text2html($data['name'])
?></td></tr>
<tr><td>Address:</td><td><input type="text" value="<?=
htmlspecialchars($data['address']) ?>"</td></tr>
</table>
<?
Cheers,
Leon