title: How to match both e and é in php
body: <p>I am retrieving a data from data base in that some of the array contains a result like this.</p>
  
  <pre><code>playa|beach|mar|isco
  </code></pre>
  
  <p>When the user types e or é.I want to display only "beach".If the user types i or í i want to display only "isco".
  I am using this code:</p>
  
  <pre><code>$indx=0;
  while($row = mysql_fetch_array($rc)){
  
      if (strpos($row['texto'],'|') !== false) {
  
          $pieces = explode("|", $row['texto']);
          foreach($pieces as $key =&gt; $one) {
             if(strpos($one, $fincas) !== false)
                 $indx=$key;
          }
          $row['texto'] = $pieces[$indx];
      }
  }
  </code></pre>
  
  <p>When the user types "e" its displaying properly "beach" but when the user types "é" its displaying "playa".</p>
  
  <p>In php i have to display an array which contains e or é(i or í)</p>