Hackerss.com

hackerss
hackerss

Posted on

Sumar 3 numeros in Php

Sumar 3 numeros - Php:


function sumar($a, $b, $c) {
  $total = 0;
  // sum a plus b
  $total = $a+$b+$c;
  // return the sum 
  return $total;
}

//example
$result = sumar(88, 22, 33);

//output
echo $result; //110


Enter fullscreen mode Exit fullscreen mode

Top comments (0)