note 123936 rejected from function.array-sum by cmb
| From: | cmb@php.net | Date: | Thu, 13 Jun 2019 08:23:32 +0000 |
| Subject: | note 123936 rejected from function.array-sum by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211248@lists.php.net to get a copy of this message | ||
Note Submitter: szymon dot skurski at gmail dot com
----
Big request to language creators,
add parameter absolute
default set to false
for example:
$array = [5, -5];
\array_sum($array); //wolud return 0
\array_sum($array, true); // would be nice if return 5
i know it is easy to write function but why not have it in future PHP.