adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
function test($int)
{
    if ($int == 1)
        echo "This Works";
    if ($int == 2)
        echo "This Too Seems To Work";
}
test(1);
TEST(2);
?>

a.

This Works

b.

This Too Seems To Work

c.

This WorksThis Too Seems To Work

d.

ERROR

Posted under PHP

Answer: (c).This WorksThis Too Seems To Work

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 ?

Similar Questions

Discover Related MCQs