From http://blog.sina.com.cn/s/blog_8edc37a801016yha.html
if(strstr('12345','2') !== false){ echo 'exists'; }
or
if(strpos('12345','2') !== false){ echo 'exists'; }
Notice
yes !==false
not !=false
From http://blog.sina.com.cn/s/blog_8edc37a801016yha.html
if(strstr('12345','2') !== false){ echo 'exists'; }
or
if(strpos('12345','2') !== false){ echo 'exists'; }
Notice
yes !==false
not !=false