RE: [PHP] Unwanted Characters

From: Date: Sun, 25 Feb 2001 10:27:22 +0000
Subject: RE: [PHP] Unwanted Characters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41575@lists.php.net to get a copy of this message
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) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Clayton Dukes [mailto:cdukes@cdukes.com] Sent: Sunday, February 25, 2001 2:34 PM To: php-general@lists.php.net 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

« previous php.general (#41575) next »