Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in

Posted on

Php Imprimir si un numero es par


 * function to sum two numbers
 * @param integer $number_one  First number to sum
 * @param integer $number_two  Second number to sum
 * @return $total
function addNumbers($number_one, $number_two) {
  $total = 0;
  // sum a plus b
  $total = $a+$b;
  // return the sum 
  return $total;

$result = addNumbers(1, 2);

echo $result; //3

Enter fullscreen mode Exit fullscreen mode

Top comments (0)