ahmed0saber

A function to calculate the sum of 2 stored numbers in PHP

Nov 18th, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.10 KB | None | 0 0
  1. <?php
  2.     function sum($num1,$num2)
  3.     {
  4.         return $num1+$num2;
  5.     }
  6.     echo sum(2,5);
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment