The array_sum() function returns the sum of all the values in the array
Syntaxarray_sum(array)
Example
<?php // sum the all the values in the array $sum=array(0=>15,1=>15,1=>15,); echo array_sum($sum); ?> |
45
>
The array_sum() function returns the sum of all the values in the array
Syntax<?php // sum the all the values in the array $sum=array(0=>15,1=>15,1=>15,); echo array_sum($sum); ?> |
0 comments:
Post a Comment