![]() |
|
Custom PHP Functions - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: PHP (https://sinister.li/Forum-PHP) +--- Thread: Custom PHP Functions (/Thread-Custom-PHP-Functions) |
Custom PHP Functions - Banadmin - 07-03-2013 PHP Code: <?php
echo adding_numbers();
function adding_numbers() {
$number1 = 1;
$number2 = 5;
$number3 = $number1 + $number2;
return $number3;
}
?>Explanation
All this custom function does it display the answer to 5 + 1 which is 6. |