adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
for ($count = 0; $count<3;$count++);
{
    print "hi";break;print "hello";
}
?>

a.

hihihi

b.

hihellohihellohihello

c.

hellohellohello

d.

hi

Posted under PHP

Answer: (d).hi

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 ?