note 15216 added to function.array-sum
| From: | mrowe at pointsystems dot com | Date: | Fri, 31 Aug 2001 23:38:22 +0000 |
| Subject: | note 15216 added to function.array-sum | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17477@lists.php.net to get a copy of this message | ||
For some reason, this function was causing a page to crash without any feedback if I passed it a
variable that wasn't an array (didn't happen on all builds of PHP).
So, if things are strange with this function, make sure you pass it an array: is_array($array)
http://www.php.net/manual/en/function.array-sum.php