title: PHP nearest string comparison
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5092708/string-similarity-in-php-levenshtein-like-function-for-long-strings">String similarity in PHP: levenshtein like function for long strings</a>  </p>
  </blockquote>
  
  
  
  <p>I have my subject string </p>
  
  <p><code>$subj = "Director, My Company";</code> </p>
  
  <p>and a list of multiple strings to be compared:</p>
  
  <p><code>$str1 = "Foo bar";</code><br/><code>$str2 = "Lorem Ipsum";</code><br/><code>$str3 = "Director";</code></p>
  
  <p>What I want to achieve here is to find the nearest string related to <code>$subj</code>. Is it possible to do it?</p>