I have a couple hundred single words that are identified in a foreach routine and pushed into an array.
I would like to check each one (word) to see if it exists in an existing txt file that is single column 200k+ lines.
(Similar to a huge "bad word" routine i guess but, in the end this will add to the "filter" file.)
I don't know whether i should do this with preg_match in the loop or should I combine the arrays somehow and array_unique?
I would like to add the ones not found to the main file as well. Also flocking in attempt to avoid any multi access issues.
Is this a pipe dream? Well it is for this beginner. My attempts have timed out in 30 seconds.
Stackoverflow has been such a great resource. I don't know what I would do without it. Thanks in advance either way.