Regular expressions would be overkill. Try $newString = str_replace(" ", "", $oldString);
J Jule Slootbeek wrote: > Hi, > > What's the best and easiest way to strip all the spaces from a string? > do i use regular expressions for it? > > TIA, > J. > Jule Slootbeek > [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php