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;
}
?>A. -3-4-5
B. -3-4
C. infinite loop
D. no output
Answer: Option D

Join The Discussion