At 17:51 14-09-2004, 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 ?
How about this ??? This is the one I made for this purpose
function stripAccents($string) {
$returnString = strt
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 ?
found this on the strtr() manual page (http://php.net/strtr):
'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh',
'ß' => 'ss', 'Œ'
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);
--
PHP General Mailing List (http://www.php.net/)
To uns
On Tue, 14 Sep 2004 17:51:00 +0200, Diana Castillo <[EMAIL PROTECTED]> 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 ?
str_replace(), eregi_replace()
--
Greg Donald
http://destiney.com/
-
4 matches
Mail list logo