title: Most used words in text with php
body: <p>I found the code below on stackoverflow and it works well in finding the most common words in a string. But can I exclude the counting on common words like "a, if, you, have, etc"? Or would I have to remove the elements after counting? How would I do this? Thanks in advance.</p>
  
  <pre><code>&lt;?php
  
  $text = "A very nice to tot to text. Something nice to think about if you're into text.";
  
  
  $words = str_word_count($text, 1); 
  
  $frequency = array_count_values($words);
  
  arsort($frequency);
  
  echo '&lt;pre&gt;';
  print_r($frequency);
  echo '&lt;/pre&gt;';
  ?&gt;
  </code></pre>