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