PHP » Operators » %

Syntax:
expression1 % expression2
expression1
Numerator.
expression2
Denominator.

Modulus.

This operator returns the remainder from a division.

Examples

Code:
<?php

print 65 % 4;

?>
Output:
1
Explanation:

The reminder of 65 / 4 is 1, i.e. 16 * 4 + 1 = 65.