A
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 0;
for(++$p; ++$p; ++$p)
{
print $p;
if ($p == 6)
break;
}
?>
$p = 0;
for(++$p; ++$p; ++$p)
{
print $p;
if ($p == 6)
break;
}
?>
- Correct Answer - Option(D)
- Views: 12
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.