preg_replace (character without accents)
| From: | Danielle van Gladbach | Date: | Fri, 23 Aug 2002 12:23:58 +0000 |
| Subject: | preg_replace (character without accents) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113747@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to get character without accents.
In this example, i'm trying to convert "Thïs is a tëst" to "This is a
test", what am i doing wrong? Or is there an easier way to do this?
$string = "Thïs is a tëst";
$string = preg_replace("/&*uml;/","",$string);
output:
string2= Th&is is a t&est
Please help!!!
Danielle