I want to check if a number is divisible by 6 and if not I need to increase it until it becomes divisible.
how can I do that ?
For micro-optimisation freaks:
if ($num % 6 != 0) $num += 6 - $num % 6;
More evaluations of %, but less branching/looping. :-P
%