note 130143 added to function.array-any
| From: | laurent@d-nada.com | Date: | Fri, 14 Mar 2025 14:28:09 +0000 |
| Subject: | note 130143 added to function.array-any | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221973@lists.php.net to get a copy of this message | ||
if (! function_exists('array_any')) {
function array_any(array $array, callable $callable) {
foreach ($array as $key => $value) {
if (! $callable($value, $key))
return false;
}
return true;
}
}
----
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-any.php
Edit -- https://main.php.net/note/edit/130143
Del: integrated -- https://main.php.net/note/delete/130143/integrated
Del: useless -- https://main.php.net/note/delete/130143/useless
Del: bad code -- https://main.php.net/note/delete/130143/bad+code
Del: spam -- https://main.php.net/note/delete/130143/spam
Del: non-english -- https://main.php.net/note/delete/130143/non-english
Del: in docs -- https://main.php.net/note/delete/130143/in+docs
Del: other reasons-- https://main.php.net/note/delete/130143
Reject -- https://main.php.net/note/reject/130143
Search -- https://main.php.net/manage/user-notes.php