<?php$mystring = '我是中国人我是安徽人我是人';$findme = '我';$pos = strpos($mystring,$findme,0);//0表示是否是第一次出现,0的话就是,1的话就不是//这时候要看中文是什么编码了,是UTF-8的话就是$pos/3,是GBK或GB2312的话就$pos/2,if ($pos === false) {
echo "The string '$findme' was not found in the string '$mystring'";} else {
echo "The string '$findme' was found in the s