note 39146 deleted from function.array-map by aidan

From: Date: Tue, 06 Jul 2004 08:28:48 +0000
Subject: note 39146 deleted from function.array-map by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72716@lists.php.net to get a copy of this message
Note Submitter: Vincent ---- This function, which works like array_map(), but accepts one callback and one array: <?php function array_func($func,$array) { if ( (!function_exists($func)) or (!is_array($array)) ) return false; reset($array); $ret = array() while (list($key,$value) = each($array)) $ret[$key] = $func($value); return $ret; } ?>

« previous php.notes (#72716) next »