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('/\
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'
2 matches
Mail list logo