Last active
December 7, 2016 13:06
-
-
Save ilhamarrouf/1c911ab702c85f03cf0bb4f71a206d22 to your computer and use it in GitHub Desktop.
PHP Arithmetic Operators
This file contains hidden or 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 = 100; | |
| $y = 8; | |
| echo $x % $y; // Hasilnya 4 | |
| /* Sisa hasil bagi 100 oleh 8 adalah 4 | |
| Logikanya 8 * 12 = 96, sisa 4 dari 100 dan tidak bisa di bagi 8 lagi */ | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment