PHP Sum of elements of an array – PHP May 11, 2011 Pramod T P Leave a comment <?php $testArray = array(5, 3, 8, 10); echo "Sum is : ".array_sum($testArray) ; //Sum is : 26 ?>