Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    function fun($Str)
    {
    echo strpos($Str, "good",0);
    }
    fun("The Interview Mania is good for study.");
    ?>
    1. good
    2. Error
    3. 23
    4. Nothing
    5. None of these
Correct Option: C

good starts from position 23 in string.



Your comments will be displayed only after manual approval.