array_sum Calculate the sum of values in an array : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_sum Calculate the sum of values in an array



<?php
   $grades = array(42,"hello",42);
   $total = array_sum($grades);
   print $total;
?>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function