$a = "Car 神"; $result = preg_replace('/([\x80-\xff]*)/i','',$a); var_dump($result);
参考链接:php字符串去掉中文
$a = "Car 神"; $result = preg_replace('/([\x80-\xff]*)/i','',$a); var_dump($result);
参考链接:php字符串去掉中文
转载于:https://www.cnblogs.com/fsong/p/5167262.html