警告: strpos() [function.strpos]: 空分隔符是什么意思?
我有这个:
if(strpos(''', $text) === false)
{
$text = str_replace(''', "'", $text);
}
猜测一下,我会说$text
是一个空字符串(感谢马克指出细节)
编辑:另外,另一种猜测是您的参数顺序错误。 strpos 的方法签名是
int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
See http://php.net/manual/en/function.strpos.php http://php.net/manual/en/function.strpos.php
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)