十七度
功能小记:将空格转为-中划线
开发调优
互联网
dajiang
2019 年9 月 28 日 05:03
1
需求:根据用户输入的字符如果有空格则根据空格将字符串用-串联起来
preg_replace(“/(\s+)/u”,“-”,$string);