/** * PHP通过正则表达式从字符串中剔除非ASCII码字符 * * @param * @arrange 512-笔记网: 512Pic.com **/ $str = "Remove these: äó"; $string = preg_replace('/[^(\x20-\x7F)]*/','',$str); /*** 来自编程之家 jb51.cc(jb51.cc) ***/