adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
for ($x = 1; $x < 10; $x++)
    for ($y = 1; $y < 5; $y++)
        print "Hello";
?>

a.

Hello….36 times

b.

Hello….45 times

c.

Hello….50 times

d.

Hello….40 times

Posted under PHP

Answer: (a).Hello….36 times

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 ?