title: PHP Stop Word List
body: <p>I'm playing about with a stop words within my code I have an array full of words that I'd like to check, and an array of words I want to check against.</p>
  
  <p>At the moment I'm looping through the array one at at a time and removing the word if its in_array vs the stop word list but I wonder if there's a better way of doing it, I've looked at array_diff and such however if I have multiple stop words in the first array, array_diff only appears to remove the first occurrence.</p>
  
  <p>The focus is on speed and memory usage but speed more so. </p>
  
  <p>Edit -</p>
  
  <p>The first array is singular words, based on blog comments (these are usually quite long) the second array is singular words of stop words. Sorry for not making that clear</p>
  
  <p>Thanks</p>