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('/\s/',"",$your_string);
> << Hi,
>
> Does anyone know of the code to remove all whitespace from a string.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
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]