title: similar_text highest string value
body: <p>I use similar_text to find which string have the highest similar value to the input</p>
  
  <p>I tried using <code>rsort</code> to get the highest value, but how do I get string which have the highest value?</p>
  
  <pre><code>$similarities = [];
  $input = "makanan daerah";
  $type = array('pakaian','senjata','makanan', 'tarian');
  foreach ($type as $value) {
      similar_text($input, $value, $percent);
      $similarities[$value] = $percent;
  }
  rsort($similarities);
  echo($similarities[0]);
  </code></pre>
  
  <p>I expect output <code>makanan</code>
  but the only output I can display is the percent value <code>66.6667</code></p>