?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x;
for ($x = -3; $x < -5; ++$x)
{
print ++$x;
}
?>
<?php
$x;
for ($x = -3; $x < -5; ++$x)
{
print ++$x;
}
?>
Answer & Solution
Correct Answer:
Option
D
The loop is not even entered as x is initially 0.
Join the Discussion
Login to post a comment or share your explanation.
Login