fork download
  1. <?
  2.  
  3. $keywords = array('sebastian','nous','helene','lol'); //it could be anything in fact
  4. $badwords = array('nous', 'lol', 'ene', 'seba'); //array full of stop words that I won't write here
  5. $filtered_keywords = array_diff($keywords, $badwords);
  6. print_r($filtered_keywords);
  7.  
  8. ?>
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
Array
(
    [0] => sebastian
    [2] => helene
)