note 110320 added to function.array-sum
| From: | sergei dot solomonov at gmail dot com | Date: | Wed, 10 Oct 2012 13:11:13 +0000 |
| Subject: | note 110320 added to function.array-sum | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191234@lists.php.net to get a copy of this message | ||
<?php
$a = array(9, '1string');
echo "sum of the array = " . array_sum($a) . "\n"; // 10
$a = array(9, '1.1string');
echo "sum of the array = " . array_sum($a) . "\n"; // 10.1
$a = array(9, 'string');
echo "sum of the array = " . array_sum($a) . "\n"; // 9
$a = array(9, array('string'));
echo "sum of the array = " . array_sum($a) . "\n"; // 9
----
Server IP: 69.147.83.199
Probable Submitter: 83.246.218.42
----
Manual Page -- http://www.php.net/manual/en/function.array-sum.php
Edit -- https://master.php.net/note/edit/110320
Del: integrated -- https://master.php.net/note/delete/110320/integrated
Del: useless -- https://master.php.net/note/delete/110320/useless
Del: bad code -- https://master.php.net/note/delete/110320/bad+code
Del: spam -- https://master.php.net/note/delete/110320/spam
Del: non-english -- https://master.php.net/note/delete/110320/non-english
Del: in docs -- https://master.php.net/note/delete/110320/in+docs
Del: other reasons-- https://master.php.net/note/delete/110320
Reject -- https://master.php.net/note/reject/110320
Search -- https://master.php.net/manage/user-notes.php