fork(1) download
  1. <?php
  2.  
  3. function arraySum($a, $b, $c) {
  4. $array=array(
  5. $a => pow($a, 2),
  6. $b => pow($b, 2),
  7. $c => pow($c, 2)
  8. );
  9. $array=array_sum($array);
  10. return ($array);
  11. }
  12.  
  13. $arrayFunc=arraySum(1, 3, 7);
  14. echo "$arrayFunc";
  15. // your code goes here
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
59