adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
$x;
for ($x = -3; $x < -5; ++$x)
{
    print ++$x;
}
?>

a.

-3-4-5

b.

-3-4

c.

infinite loop

d.

no output

Posted under PHP

Answer: (d).no output

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code ?