PHP stripos() Function


The stripos() function is used to find the position of the first occurrence of a string inside another string.

Syntax
stripos(string,find,start)
Parameters
  • string - (required)Specify the string to check.
  • find - (required)Specify the string to find.
  • start - (optional)Specify where to begin the search..
Example
<?php
    echo stripos("Welcome to My Home","Home");
?> 
 

Output

14

Prev Next