If you have a string eg:
$val = "John Doe";
how do you get rid of the white space in the middle thereby making it one word, trim removes spaces from the ends I want to join the two words.
strip white spaces
str_replace
$val = str_replace(' ', '', $val);
oh wow..thanks alot LB I have been wanting to know something like this as well..