note 33124 deleted from function.strstr by didou
| From: | didou@php.net | Date: | Tue, 17 Jun 2003 13:27:33 +0000 |
| Subject: | note 33124 deleted from function.strstr by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50488@lists.php.net to get a copy of this message | ||
Note Submitter: Remo Liechti
----
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