Q:

What will be the output of the following PHP code ?

0

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);
?>

  1. This Works
  2. This Too Seems To Work
  3. This WorksThis Too Seems To Work
  4. ERROR

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).This WorksThis Too Seems To Work

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now