note 128066 added to function.array-sum
| From: | harl at gmail dot com | Date: | Thu, 29 Dec 2022 23:31:57 +0000 |
| Subject: | note 128066 added to function.array-sum | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220021@lists.php.net to get a copy of this message | ||
array_sum() doesn't "ignore strings if they are not convertible", it converts them to
zero. array_product() does the same thing, where the difference between "ignoring" and
"converting to zero" is much more obvious.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 122.58.128.88)
----
Manual Page -- https://php.net/manual/en/function.array-sum.php
Edit -- https://main.php.net/note/edit/128066
Del: integrated -- https://main.php.net/note/delete/128066/integrated
Del: useless -- https://main.php.net/note/delete/128066/useless
Del: bad code -- https://main.php.net/note/delete/128066/bad+code
Del: spam -- https://main.php.net/note/delete/128066/spam
Del: non-english -- https://main.php.net/note/delete/128066/non-english
Del: in docs -- https://main.php.net/note/delete/128066/in+docs
Del: other reasons-- https://main.php.net/note/delete/128066
Reject -- https://main.php.net/note/reject/128066
Search -- https://main.php.net/manage/user-notes.php