Q. What will be the output of the following PHP code ?
Code:<?php
$p = 2;
while ((--$p > ++$p) - 2)
{
print $p;
}
?>
β
Correct Answer: (B)
2222222.........infinite time
<?php
$p = 2;
while ((--$p > ++$p) - 2)
{
print $p;
}
?>
You must be Logged in to update hint/solution