PHP: Function that returns a value

Start PHP Code RESULT
8
End PHP Code RESULT

 

The PHP Code START
<?php
function addNums( $firstNum, $secondNum ) {
  $result = $firstNum + $secondNum;
  return $result;
}
print addNums(3,5);
?>
The PHP Code END

Back to Bill's PHP