Created
May 23, 2019 09:20
-
-
Save flaviors200/1aab11f2341eb35456614ad1b9e85c54 to your computer and use it in GitHub Desktop.
Arithmetic Operators
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$x = 9; | |
$y = 2; | |
echo $x + $y; // 0utput: 11 | |
echo $x - $y; // 0utput: 7 | |
echo $x * $y; // 0utput: 18 | |
echo $x / $y; // 0utput: 4.5 | |
echo $x % $y; // 0utput: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment