> I am using this to remove everything except the 0-9 and a-z characters,
> but I also want to remove blanks spaces as well(yes even ones in
> between words)
>
> $strippedtext = preg_replace('/[^0-9a-z]/i','',$originaltext);
>
> Please help.
>
$stripper=preg_replace('/\s+/','',$str);