PHP - Operators
What is the output of this PHP code?
$a = 7;
$a += 3;
$a *= 2;
echo $a;
$a = 7;
$a += 3;
$a *= 2;
echo $a;
$a += 3;, $a becomes 10.$a *= 2; multiplies $a by 2, so $a becomes 20.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions