title: PHP - smart, error tolerating string comparison
body: <p>I'm looking either for routine or way to look for error tolerating string comparison.</p>
  
  <p>Let's say, we have test string <code>Čakánka</code> - yes, it contains CE characters.</p>
  
  <p>Now, I want to accept any of following strings as <code>OK</code>:</p>
  
  <ul>
  <li>cakanka</li>
  <li>cákanká</li>
  <li>ČaKaNKA</li>
  <li>CAKANKA</li>
  <li>CAAKNKA</li>
  <li>CKAANKA</li>
  <li>cakakNa</li>
  </ul>
  
  <p>The problem is, that I often switch letters in word, and I want to minimize user's frustration with not being able (i.e. you're in rush) to write one word right.</p>
  
  <p>So, I know how to make ci comparison (just make it lowercase :]), I can delete CE characters, I just can't wrap my head around tolerating few switched characters.</p>
  
  <p>Also, you often put one character not only in wrong place (<code>character</code>=><code>cahracter</code>), but sometimes shift it by multiple places (<code>character</code>=><code>carahcter</code>), just because one finger was lazy during writing.</p>
  
  <p>Thank you :]</p>