note 16157 deleted from function.print-r by aidan

From: Date: Mon, 11 Oct 2004 13:06:11 +0000
Subject: note 16157 deleted from function.print-r by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78332@lists.php.net to get a copy of this message
Note Submitter: j-f(at)gmx(dot)net ---- To quote HTML special chars in an array before print_r(), use the following: <?php array_walk(&$array, 'quote'); print_r($array); function quote(&$val) { if (is_array($val)) { array_walk(&$val, 'quote'); return; } $val = htmlentities($val); } ?>

« previous php.notes (#78332) next »