将特殊字符和空格转换成- $str =preg_replace("/[^".chr(0xa1)."-".chr(0xff)."a-zA-Z0-9]+/","-", strtolower($cate[\'DISP_NAME\']));//只匹配中英文数字 相关文章: 2021-11-25 2022-12-23 2022-12-23 2022-12-23 2022-01-10 2022-12-23 2022-01-07 2022-12-23