> array_sum() in php ~ Online tutorial

array_sum() in php

The array_sum() function returns the sum of all the values in the array

Syntax
array_sum(array)
Example

<?php
// sum the all the values in the array
$sum=array(0=>15,1=>15,1=>15,);
echo array_sum($sum);

?>

Output
45

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: