Trim with php
Posted
by spotlightsnap
on Stack Overflow
See other posts from Stack Overflow
or by spotlightsnap
Published on 2010-03-26T03:55:55Z
Indexed on
2010/03/26
4:03 UTC
Read the original article
Hit count: 247
php
Hello,
I have a sentence like this.
1 $nbsp; 2 3 4
As you see, in between 1 2 and 3 text, there are extra spaces. I want the output with only one space between them. so my output will be 1 2 3 4
How can i use php trim to get the output like this. If i use trim, it can only remove whitespace, but not that
Thanks.
© Stack Overflow or respective owner