Hi, could anyone tell me how to remove all spaces from a variable, not just the biggining or end but ALL white space.
eg "Biscutty Wyler " becomes "BiscuttyWyler"
thanks all
Hi,
something like:
$content = ereg_replace(" ", "", $content);
?
J.
That's good, but there's no need to do regular expression checking when str_replace() will do....
$var="this is a test string"; $var=str_replace(" ", "", $var); echo $var; // reads "thisisateststring"