Re: [PHP] Removing Whitespace

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 14:52, [EMAIL PROTECTED] wrote: > I found it on DevShed, if anyone else is interested the code is > > $your_string = str_replace(" ","",$your_string); That only eliminates "space" characters and leaves tabs, newline etc untouched. Try $your_string = preg_replace('/\

Re: [PHP] Removing Whitespace

2001-02-17 Thread Website4S
Hi, I found it on DevShed, if anyone else is interested the code is $your_string = str_replace(" ","",$your_string); Regards Ade << Hi, Does anyone know of the code to remove all whitespace from a string. E.G if input is 'Hello I was here' I want it to come out as 'HelloIwashere'

[PHP] Removing Whitespace

2001-02-17 Thread Website4S
Hi, Does anyone know of the code to remove all whitespace from a string. E.G if input is 'Hello I was here' I want it to come out as 'HelloIwashere' I`m searching the manual as I type this but can`t find anything. TIA Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m