PHP » Operators » %=

Syntax:
$var %= expression
var
A variable.
expression
The denominator of the modulus expression.

Modulus assignment operator.

The remainder from the division of the left operand by the right operand is assigned to the left operand.

Examples

Code:
<?php

$a = 13;
$a %= 5;
print $a;

?>
Output:
3
Explanation:

A variable is changed with an assignment operator.