Created
September 7, 2016 17:49
-
-
Save phlbnks/77ccf115bf2f584ce74bdd6142b02550 to your computer and use it in GitHub Desktop.
Modulus helper
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 | |
echo '<pre>'; | |
for ($j = 1; $j < 10; $j++) { | |
for ($k = 0; $k < $j; $k++) { | |
echo "\n\$i % $j == $k: \n"; | |
for ($i = 0; $i < 10; $i++) { | |
echo "$i : "; | |
if ($i % $j == $k) { | |
echo "TRUE"; | |
} | |
echo " \n"; | |
} | |
} | |
} | |
echo '</pre>'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment