note 31135 deleted from function.array-walk by aidan

From: Date: Sun, 11 Jul 2004 02:08:55 +0000
Subject: note 31135 deleted from function.array-walk by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73032@lists.php.net to get a copy of this message
Note Submitter: webwurst at web dot de ---- this function works an given array recursivly, even with passing the values per reference. (but no [, mixed userdata]) function array_walk_recursiv(&$array, $function) { foreach ($array as $key => $value) { if (is_array($value)) array_walk_recursiv($value, $function); else $function($value, $key); $array[$key] = $value; } }

« previous php.notes (#73032) next »