title: Replacing accented characters php
body: <p>I am trying to replace accented characters with the normal replacements. Below is what I am currently doing.</p>
  
  <pre><code>    $string = "Éric Cantona";
      $strict = strtolower($string);
  
      echo "After Lower: ".$strict;
  
      $patterns[0] = '/[á|â|à|å|ä]/';
      $patterns[1] = '/[ð|é|ê|è|ë]/';
      $patterns[2] = '/[í|î|ì|ï]/';
      $patterns[3] = '/[ó|ô|ò|ø|õ|ö]/';
      $patterns[4] = '/[ú|û|ù|ü]/';
      $patterns[5] = '/æ/';
      $patterns[6] = '/ç/';
      $patterns[7] = '/ß/';
      $replacements[0] = 'a';
      $replacements[1] = 'e';
      $replacements[2] = 'i';
      $replacements[3] = 'o';
      $replacements[4] = 'u';
      $replacements[5] = 'ae';
      $replacements[6] = 'c';
      $replacements[7] = 'ss';
  
      $strict = preg_replace($patterns, $replacements, $strict);
      echo "Final: ".$strict;
  </code></pre>
  
  <p>This gives me:</p>
  
  <pre><code>    After Lower: éric cantona
      Final: ric cantona
  </code></pre>
  
  <p>The above gives me <code>ric cantona</code> I want the output to be <code>eric cantona</code>.</p>
  
  <p>can anyone help me with where I am going wrong?</p>