title: Remove numbers and short words from search keywords
body: <p>I have an insert query which adds various words into a search table, for use in a keyword search for my site, based on existing content from other tables.</p>
  
  <p>My issue is that, although I have a common words text file which excludes words like 'and' and 'the', I also wish to eliminate numbers and words less than 3 characters in length. </p>
  
  <p>Can anyone help?            </p>
  
  <pre><code>$stripChars = array('.', ',', '!', '?', '(', ')', '%', '&amp;', '"', '*', ':', ';', '@', ' - ', '/', '\\');
  $string = str_replace($stripChars, ' ', $string);
  
  $string = str_replace('  ', ' ', $string);
  $words = explode(' ', $string);
  
  return array_diff($words, $this-&gt;commonwords);
  </code></pre>