use eregi_replace("[asutk]+", '', $string)
in this way there will be no such letters as a,s,u,t,k in $string
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 2:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Unwanted Characters
How do I remove unwanted/unprintable characters from a variable?
$sometext = "ThÀe cØar röøan over mÖy dog"
needs to be filtered and reprinted as:
"The car ran over my dog"
Thanks :-)
Clayton Dukes
--
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]