title: PHP - find most common word over certain character length in string.
body: <p>Ok, so as I'm getting my hands dirty with PHP I've started playing around with arrays, strings and the like. </p>
  
  <p>Now I know that arrays have a neat feature called "array_count_values" which can help to determine what the most repeated entry is. I wasn't able to find a string equivalent for this- will I need to convert the string to an array?</p>
  
  <p>Basically, I want my code to determine what the most common (repeated) word is over a certain length in a given string. </p>
  
  <p>Sans the character length qualification, this code can find the answer to the question of what is the most repeated word in an array:</p>
  
  <pre><code>&lt;?php
  
  
  $param[0]="Ted";
  $param[1]="Mark";
  $param[2]="Mark";
  $param[3]="Ross"; 
  $param[3]="Clarence"; 
  
  function array_most_common($arr) 
  { 
    $counted = array_count_values($arr); 
    arsort($counted); 
    return(key($counted));     
  }
  
  $mostCommon = array_most_common($param);
  echo $mostCommon;
  ?&gt;
  </code></pre>
  
  <p>So what would make this doable with a string? And a character amount filter?</p>