Skip to content

Instantly share code, notes, and snippets.

@emirpprime emirpprime/mod.php
Created Sep 7, 2016

Embed
What would you like to do?
Modulus helper
<?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
You can’t perform that action at this time.