note 130410 added to function.array-all
| From: | bartosz.f@example.com | Date: | Wed, 09 Jul 2025 12:25:10 +0000 |
| Subject: | note 130410 added to function.array-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222264@lists.php.net to get a copy of this message | ||
The function will always return true for empty array.
php > var_dump(array_all([], fn()=> true));
bool(true)
php > var_dump(array_all([], fn()=> false));
bool(true)
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 94.101.112.180)
----
Manual Page -- https://php.net/manual/en/function.array-all.php
Edit -- https://main.php.net/note/edit/130410
Del: integrated -- https://main.php.net/note/delete/130410/integrated
Del: useless -- https://main.php.net/note/delete/130410/useless
Del: bad code -- https://main.php.net/note/delete/130410/bad+code
Del: spam -- https://main.php.net/note/delete/130410/spam
Del: non-english -- https://main.php.net/note/delete/130410/non-english
Del: in docs -- https://main.php.net/note/delete/130410/in+docs
Del: other reasons-- https://main.php.net/note/delete/130410
Reject -- https://main.php.net/note/reject/130410
Search -- https://main.php.net/manage/user-notes.php