"> What will be the output of the following PHP code?<?phpecho

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    echo stripos("I know the php, I love to know the php too!","know");
    ?>
    1. I know the php, I love to know the php too!
    2. Error
    3. 2
    4. 7
    5. None of these
Correct Option: C

The stripos() function finds the position of the first occurrence of a string inside another string.



Your comments will be displayed only after manual approval.