$string  = preg_replace("/\s+/","" $string);

That will get spaces as well as special chars like \t,\n,\r and \f

Ray Iftikhar wrote:
> 
> How would I go about removing the space from a string?
> (ie. 3 doors down -> 3doorsdown)
> Last I checked I dont think that there was a specific function for it.
> 
> Thanx in advance,
>         Ray...
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Monte Ohrt <[EMAIL PROTECTED]>
http://www.ispi.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to