int
stripos (
string$haystack ,
string$needle [,
int$offset = 0 ] )
返回在字符串haystack 中 needle 首次出现的数字位置。
stripos() 不区分大小写。
在php5中可以正常使用。
但在php4中使用前需要先添加一段代码:
if(!function_exists('stripos')) {
function stripos($haystack, $needle, $offset = 0) {
return strpos(strtolower($haystack), strtolower($needle), $offset);
}
}
然后就可以正常使用了。