Q. what is the output of below program?
Code:
<?php
$a=0;
$b=0;
for($i=0;$i<10;$i++)
{
if(++$a<5 || $b++<7){ }
}
echo $a." ".$b;
?>
β
Correct Answer: (B)
10 6