Trim with php
- by spotlightsnap
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.