On 24 Feb 2001 21:31:33 -0800, Clayton Dukes <[EMAIL PROTECTED]> wrote:
>How do I remove unwanted/unprintable characters from a variable?
>
>$sometext =3D "Th=C0e c=D8ar r=F6=F8an over m=D6y dog"
>needs to be filtered and reprinted as:
>"The car ran over my dog"
Strip everything which isn't in the list of allowed characters:
eregi_replace("[^[:alpha:]]", "", $sometext)
--
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]