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