Return the sum of all the values in the array (52.2+13.7+0.9):


SUBMITTED BY: henry1874w

DATE: June 26, 2017, 4:46 p.m.

FORMAT: Text only

SIZE: 71 Bytes

HITS: 214

  1. <?php
  2. $a=array("a"=>52.2,"b"=>13.7,"c"=>0.9);
  3. echo array_sum($a);
  4. ?>

comments powered by Disqus