note 130142 added to function.array-all
| From: | laurent@d-nada.com | Date: | Fri, 14 Mar 2025 14:25:01 +0000 |
| Subject: | note 130142 added to function.array-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221972@lists.php.net to get a copy of this message | ||
if (! function_exists('array_all')) {
function array_all(array $array, callable $callable) {
$result = true;
foreach ($array as $key => $value) {
$result = $callable($value, $key);
if (! $return)
return $result;
}
return $result;
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 2a01:e0a:4a0:ddf0:5cd7:2443:856b:4957)
----
Manual Page -- https://php.net/manual/en/function.array-all.php
Edit -- https://main.php.net/note/edit/130142
Del: integrated -- https://main.php.net/note/delete/130142/integrated
Del: useless -- https://main.php.net/note/delete/130142/useless
Del: bad code -- https://main.php.net/note/delete/130142/bad+code
Del: spam -- https://main.php.net/note/delete/130142/spam
Del: non-english -- https://main.php.net/note/delete/130142/non-english
Del: in docs -- https://main.php.net/note/delete/130142/in+docs
Del: other reasons-- https://main.php.net/note/delete/130142
Reject -- https://main.php.net/note/reject/130142
Search -- https://main.php.net/manage/user-notes.php