除了汉字全部过滤

 preg_match_all('/[x{4e00}-x{9fff}]+/u', $tiezi, $matches);

原文地址:https://www.cnblogs.com/afei-happy/p/3682635.html