<?php$a = 10; $b = 10;if ($a = 5) $b--;print $a;print $b--;?>
<?php
$a = 10; $b = 10;
if ($a = 5)
$b--;
print $a;print $b--;
?>
58
59
109
108
View Answer
Workspace
Share
Copy Text
Copy URL
Answer : Option B
Explanation :
a is set to 5 in the if condition and b is postdecremented in the print statement.
Be The First To Comment