Assign values using PHP

In PHP, basic assignment operator is equal to(“=”). Some other operators are +=, -=, *=, /=, .= and %= .

$a=$b
The value of $b is assigned to a variable $b.
$a+=$b
It is the same calculation of $a=$a+$b.
$a-=$b
It is the same calculation of $a=$a-$b.
$a*=$b
It is the same calculation of $a=$a*$b.
$a/=$b
It is the same calculation of $a=$a/$b.
$a.=$b
It is the same calculation of $a=$a.$b.
$a%=$b
It is the same calculation of $a=$a%$b.

Sum of two Numbers using PHP
<?php
$a = 80;
$b = 40;
echo $a+=$b;
?>

Output : 120