Home >Backend Development >PHP Tutorial >PHP introductory tutorial: stripos example tutorial_PHP tutorial
php introductory tutorial:stripos Example tutorial
Definition and usage
The stripos() function returns the position where the first occurrence of the string begins.
If the string is not found, this function returns FALSE.
stripos(string,find,start)
Parameter Description
string: Must first,
find: the string that must be found
start: Optional. Specifies where to begin the search
Okay, let’s take a look at the .stripos example.
echo stripos("Hello world!","WO");
?>
The output result is.
6