/ Published in: PHP
![](/img/icon_sav.png?v3)
Replaces spaces by '\s+' which means one or more spaces
$string can be one string or one array of strings
$string can be one string or one array of strings
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function regex_spaces($string) { }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)