[nycphp-talk] Escaping output in array isn't working
Cliff Hirsch
cliff at pinestream.com
Mon Jul 23 08:57:03 EDT 2007
On 7/23/07 8:47 AM, "Tim B" <timb.php at gmail.com> wrote:
> Here's the code:
> # Escape for output into html
> foreach ($event as $v1)
> {
> foreach ($v1 as $v2)
> {
> $v2 = htmlentities($v2, ENT_QUOTES, 'UTF-8');
> echo "{$v2}<br>";
V1 and V2 need to be references. See online php manual
foreach ($event as &$v1)
> {
> foreach ($v1 as &$v2)
More information about the talk
mailing list