Skip to content

Instantly share code, notes, and snippets.

@ilhamarrouf
Last active December 7, 2016 13:06
Show Gist options
  • Save ilhamarrouf/1c911ab702c85f03cf0bb4f71a206d22 to your computer and use it in GitHub Desktop.
Save ilhamarrouf/1c911ab702c85f03cf0bb4f71a206d22 to your computer and use it in GitHub Desktop.
PHP Arithmetic Operators
<?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