strpos() 函数查找字符串在另一字符串中第一次出现的位置。

strpos(string,find,start)

返回  从string中的start位置开始找find第一次出现的位置

 

注意:

strpos('asdfg','a');

返回值为 0