note 33124 added to function.strstr

From: Date: Tue, 17 Jun 2003 11:35:33 +0000
Subject: note 33124 added to function.strstr
Groups: php.notes 
Request: Send a blank email to php-notes+get-50483@lists.php.net to get a copy of this message
If you just want to replace some characters in a string, you can also use strstr: input: ------------------------------------------------------------ $test = "Anything with unusual characters like ÅÕéäü"; procedure: ------------------------------------------------------------ strtr($test, "ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ", "AAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaaaaaaceeeeiiiinoooooouuuuyy" ); output: ------------------------------------------------------------ print $test; = Anything with unusual characters like AOeau Greets R.Liechti ---- Manual Page -- http://www.php.net/manual/en/function.strstr.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33124 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33124&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33124&report=yes

« previous php.notes (#50483) next »