Re: replace accents

From: Date: Tue, 14 Sep 2004 16:57:58 +0000
Subject: Re: replace accents
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196634@lists.php.net to get a copy of this message
Diana Castillo wrote:
Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ?
$string = str_replace(array('á', 'ç', 'ñ'), array('a', 'c', 'n'), $string);

« previous php.general (#196634) next »