PHP - Operators
What will be the output of the following PHP code?
$a = 10;
$a += 5;
$a -= 3;
echo $a;
$a = 10;
$a += 5;
$a -= 3;
echo $a;
$a += 5;, $a becomes 10 + 5 = 15.$a -= 3; subtracts 3: 15 - 3 = 12.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions