fork download
  1. <?php
  2. function math($a, $b) {
  3. $addition = $a + $b;
  4. $multiplication = $a * $b;
  5. return array($addition, $multiplication);
  6. }
  7. print_r(math(3, 3));
  8.  
Success #stdin #stdout 0.02s 24652KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 6
    [1] => 9
)