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