Re: Generic expressions interpolation in strings

From: Date: Mon, 06 Jan 2003 17:18:07 +0000
Subject: Re: Generic expressions interpolation in strings
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-93184@lists.php.net to get a copy of this message
----- Original Message ----- From: "Leon Atkinson" <leon@leonatkinson.com> To: "Federico Giannici" <giannici@neomedia.it>; "John Coggeshall" <john@coggeshall.org> Cc: <php-dev@lists.php.net> Sent: Monday, January 06, 2003 7:09 PM Subject: Re: [PHP-DEV] Generic expressions interpolation in strings > > 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: > And that's is the better and preffered way > ?> > <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 > Andrey

« previous php.dev (#93184) next »