The preg_replace
function is not behaving the way I did. When I run the code $string = preg_replace("/[ÁÀÂÃÄáàâãä]/", "a", $string);
what I get returned is a string full of "a's." If the string has "ÀÀ á â Í Í ì" "a a a a a a a a a a a, the preg_replace
response is" aaaaaaaaaaaaaaaaaaaaaaaai ". Can you explain why this happens? And what is the best way to do this?