title: PHP Levenshtein Percentages
body: <p>Can you explain why I need to use both the input string and the matching string when determining the levenshtein percentage? </p>
  
  <pre><code>$str1len = strlen($str1);        
  $str2len = strlen($str2);    
  if($str1len &lt; $str2len){    
      $pct = ($str1len - $lev) / $str1len;    
  } else {    
      $pct = ($str2len - $lev) / $str2len;    
  }   
  $pct = $pct * 100;      
  </code></pre>