Consider following code snippet:
$a = 90;
$a += ++$a;
echo $a;
What value will be assigned to $a variable after executing the code above?
Explanation
$a = 90;
$a += ++$a; // $a + = 91; ++$a = 91; 91 + 91 = 182;
echo $a; 

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes