Let's say I have an associative array like this one:
PHP
$array = array(
'Corfù' => 'pita gyros',
'San Gennaro' => 'pizza',
'Perù' => 'tortillias'
);
How can I access values of this array through a sanitized key in php like this? (possibly without loops)
PHP
echo $array['corfu'];
// pita gyros
echo $array['san-gennaro'];
// pizza
instead of this
PHP
echo $array['Corfù'];
// pita gyros
This is because I'm taking the key from the url of a related page, that obviously is missing accents and white spaces