note 42499 deleted from function.array-walk by aidan

From: Date: Sun, 11 Jul 2004 02:07:03 +0000
Subject: note 42499 deleted from function.array-walk by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73023@lists.php.net to get a copy of this message
Note Submitter: Dandimaar ---- Here is an updated recursive array_walk() function orginally submitted by webwurst. function array_walk_recursiv(&$array, $function, $data=NULL) { foreach ($array as $key => $value) { if (is_array($value)) array_walk_recursiv($value, $function, $data); else $function($value, $key, $data); $array[$key] = $value; } }

« previous php.notes (#73023) next »