[转载]PHP 字符串替换中文

$a = "Car 神";
$result = preg_replace('/([x80-xff]*)/i','',$a);
var_dump($result);

参考链接:php字符串去掉中文

原文地址:https://www.cnblogs.com/fsong/p/5167262.html