SyntaxFix
Write A Post
Hire A Developer
Questions
if ($variable % 6 == 0) { echo 'This number is divisible by 6.'; }:
Make divisible by 6:
$variable += (6 - ($variable % 6)) % 6; // faster than while for large divisors