(^o^)/~完美 发表于 2017-3-30 12:01:33

PHP Strpos Function Special Notice

  Sometime,  when you use strpos, it can't work as you expect, please refer to below:
  Wrong Way

$pos = strpos($str, $status);
if($pos!==false)
{
.......                                          
}
  Right Way

$pos = strpos($str, "$status");
if($pos!==false)
{
.......                                          
}
页: [1]
查看完整版本: PHP Strpos Function Special Notice