adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
for ($count = 1; $count != 20;$count++)
{
    print $count;
    $count++;
}
?>

a.

Infinite

b.

123…….20

c.

1357…19

d.

13579…21

Posted under PHP

Answer: (a).Infinite

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 ?