note 110320 deleted from function.array-sum by danbrown

From: Date: Wed, 17 Oct 2012 21:22:29 +0000
Subject: note 110320 deleted from function.array-sum by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191382@lists.php.net to get a copy of this message
Note Submitter: sergei dot solomonov at gmail dot com ---- <?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

« previous php.notes (#191382) next »