adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
    function multi($num)
    {
        if ($num == 3)
            echo "I Wonder";
        if ($num == 7)
            echo "Which One";
        if ($num == 8)
            echo "Is The";
        if ($num == 19)
            echo "Correct Answer";
    }
    $can = stripos("I love php, I love php too!","PHP");
    multi($can);
?>

a.

I Wonder

b.

Which One

c.

Is The

d.

Correct Answer

Posted under Functions in PHP PHP

Answer: (b).Which One

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