The modulo operator returns the remainder after the left operand is divided by the right operand.
echo 7 % 3; //Prints: 1
The modulo operator will convert its operands to integers before performing the operation, rounding down.
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.