A
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;
?>
$a=0;
$b=0;
for($i=0;$i<10;$i++)
{
if(++$a<5 && $b++<7){ }
}
echo $a." ".$b;
?>
- Correct Answer - Option(C)
- Views: 21
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.