"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code?

    <?php

    function do($myString)

    {

    echo strpos($myString, "donkey",0);

    }

    do("The donkey looks like a horse.");

    ?>

  2. A.

     4

    B.

     5

    C.

     2

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Donkey starts from position 4 in string.


Be The First To Comment