Definition and usage
The strpos () function returns the position of the first occurrence of another string inside a series.
If the string is not found, this function returns FALSE.
Grammar
strpos(string,find,start)
|
Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
string | Required, | ||||||||
find | Required. specified search string | ||||||||
start | Optional, where to start |
Tips and Instructions Note: The strpos ( ) function is case-sensitive. For example
<!--?phpecho strpos("Hello world!","wo");?-->
结出结果:6