Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function addition($x, $y) {
- $sum = $x + $y;
- return $sum; // Here the $sum variable is not needed as we are not doing any further tasks with this variable, it is used for demonstration purposes
- }
- echo addition(5, 6); // prints 11
- ?>
Add Comment
Please, Sign In to add comment