Q. What will be the output of the following PHP code ?
Code:<?php
for ($b = 0; $b = -5; $b = 1)
{
print $b;
if ($b != 2)
break;
}
?>
β
Correct Answer: (C)
-5
<?php
for ($b = 0; $b = -5; $b = 1)
{
print $b;
if ($b != 2)
break;
}
?>
You must be Logged in to update hint/solution