Guest User

Untitled

a guest
Jan 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. function addition($x, $y) {
  4. $sum = $x + $y;
  5. 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
  6. }
  7.  
  8. echo addition(5, 6); // prints 11
  9.  
  10. ?>
Add Comment
Please, Sign In to add comment