/ Published in: PHP
Remove excess whitespaces from string Remove espaços em branco em excesso de uma string
Expand |
Embed | Plain Text
function stripExcessSpaces($str) { } // ex.: $string = 'String with too many whitespaces.'; ".stripExcessSpaces($string).'</pre>';
Comments
Subscribe to comments
You need to login to post a comment.

thanks for the correction, tobiwan