adplus-dvertising
frame-decoration

Question

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

a.

iiiii

b.

infinite loop

c.

iiiiiiiiiiiiiiiiiiiiiiiii

d.

no output

Posted under PHP

Answer: (a).iiiii

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 ?