Ernest E. Vogelsinger suggested:
>$chars_in = array('Á',''á','É','é');  // you get it
>$chars_out = array('A','a','E','e');  // this too
>preg_replace($chars_in, $chars_out, $string_to_parse);

I initially got a 'no ending delimiter' error but after adding /'s to the
$chars_in it was just what the doctor ordered.

I'm actually a little surprised that there isn't a built-in function, say,
strip_accent(). I'd assume a lot of people would need this at some time or
another.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to