Nel*_*ira 0 php regex
为什么这个非常简单的preg_replace返回null?
preg_replace('[\s]+', '', "test test")
想法是删除空格.
Avi*_*Raj 5
你忘了添加分隔符.
preg_replace('~\s+~', '', "test test");
而且最好使用\s+而不是[\s]+在您的模式中.
\s+
[\s]+
归档时间:
12 年,1 月 前
查看次数:
190 次
最近记录: