Created
June 8, 2012 13:16
-
-
Save asmedrano/2895558 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a simple addition function | |
function add_these(num1, num2){ | |
$result = $num1 + $num2; | |
return $result; | |
} | |
// lets use it. | |
$sum1 = add_these(10,25); | |
echo $sum1; // outputs 35 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment