PHP Stop Word List

Posted by Dom Hodgson on Stack Overflow See other posts from Stack Overflow or by Dom Hodgson
Published on 2010-05-02T08:50:04Z Indexed on 2010/05/02 8:57 UTC
Read the original article Hit count: 429

Filed under:
|
|
|
|

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.

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.

The focus is on speed and memory usage but speed more so.

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about stop