title: How to sort an array by similarity in relation to an inputted word.
body: <p>I have on PHP array, for example:</p>
  
  <pre><code>$arr = array("hello", "try", "hel", "hey hello");
  </code></pre>
  
  <p>Now I want to do rearrange of the array which will be based on the most nearly close words between the array and my $search var.</p>
  
  <p>How can I do that?</p>