-
Syntax:
- $var /= expression
- var
- A variable.
- expression
- A value to divide the variable by.
Division assignment operator.
Divides the left operand by the right operand.
Examples
Code:
<?php
$a = 5;
$a /= 5;
print $a;
?> Output:
1Explanation:
A variable is changed with an assignment operator.