Can someone please give me the function to trim the white space inbetween words in a string eg
$str = "Hello world this is me here";
should be
$newstr = "Hello world this is me here";
Thanx
P.S you know what I mean!
J
This should work:
$newstr = preg_replace('/\s+/', ' ', $str);
Thanks