note 111433 added to function.array-map
| From: | shakespeare32 at gmail dot com | Date: | Tue, 19 Feb 2013 19:01:40 +0000 |
| Subject: | note 111433 added to function.array-map | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193690@lists.php.net to get a copy of this message | ||
Why not an array of callbacks?
<?php
function array_maps($callbacks, $array) {
if (!$callbacks) { return $array; }
if (!is_array($callbacks) && is_string($callbacks) && function_exists($callbacks))
{
return array_map($callbacks, $array);
}
foreach($callbacks as $callback) {
if (function_exists($callback)) {
$array = array_map($callback, $array);
}
}
return $array;
}
?>
----
Server IP: 69.147.83.199
Probable Submitter: 189.115.193.49
----
Manual Page -- http://php.net/manual/en/function.array-map.php
Edit -- https://master.php.net/note/edit/111433
Del: integrated -- https://master.php.net/note/delete/111433/integrated
Del: useless -- https://master.php.net/note/delete/111433/useless
Del: bad code -- https://master.php.net/note/delete/111433/bad+code
Del: spam -- https://master.php.net/note/delete/111433/spam
Del: non-english -- https://master.php.net/note/delete/111433/non-english
Del: in docs -- https://master.php.net/note/delete/111433/in+docs
Del: other reasons-- https://master.php.net/note/delete/111433
Reject -- https://master.php.net/note/reject/111433
Search -- https://master.php.net/manage/user-notes.php