Re: [PHP-WIN] array walk?

2007-06-28 Thread Michael Southworth
Looks like the answer is in the manual entry for array_walk_recursive http://php.net/array_walk_recursive *Note: * If *funcname* needs to be working with the actual values of the array, specify the first parameter of *funcname* as a reference

[PHP-WIN] array walk?

2007-06-28 Thread Juan Ignacio Borda
this code doesn't work on my PHP Version 5.2.1 (i'm trying to protect a stie from XSS) como'; $a[]=Array('hola','hello'); array_walk_recursive($a,'strip_tags'); echo ""; var_dump($a); echo ""; ?> it outputs: array(2) { [0]=> string(11) "como" [1]=> &array(2) { [0]=> string(11) "hola" [1]=