The /= sign is called the Division Assignment Operator.
It takes the value on the left, divides it by the value on the right, and saves the result in the same variable.
The value on the right side is being input into the variable on the left side.
Syntax:
$variable /= value;
Example:
<?php
$x = 20;
$x /= 4; // divides $x by 4, now $x is 5
?>
By the graphical representation:
old value->[20] new value->[4]
variable -> a a
| |
divide
|
20 / 4 = 5
|
The final result assigned in -> a = 5
Output:
5
