I would like to replace some invalid characters, I have an array that contains the correspondences:
$map = array(
"à" => "a",
"è" => "e",
"ì" => "i",
"ò" => "o",
"ù" => "u"
);
I wanted to use the function str_replace($pattern, $replacement, $string)
but I can't come to a conclusion. How can I proceed?