Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $a = 10;
- $b = 5;
- // Addition
- $result = $a + $b // $result is 15
- // Subtraction
- $result = $a -$b; // $result is 5
- // Multiplication
- $result = $a * $b; // $result is 50
- // Division
- $result = $a / $b; // $result is 2
- // Modulus (remainder)
- $result = $a % $b; // $result is 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement