to be more specific its called teh modulus operator... most ofter shortened to mod
and while it is oftern used as a test of 'divisible by' as you are doing..
it really returns the remainer
$remainder = 5%4;
echo $remainder; /// 1
and 100%33 becomes 1 also
but you are using it correctly
ok this is not to insult your intelligence, but to have fun with ascii drawings 🙂
[U] 1 [/U]
4)5
[U]4 -[/U]
1 <-- remainder