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(2, 2, 2);
  14. echo "$arrayFunc";
  15. // your code goes here
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
4