I want to actually return results when searching a rather large array (roughly 2000 lines). Instead of just checking to see if the query is in the array [using in_array()], I want to pull the matching results.
If this isn't possible, is there a way to do what I asked for using a text file instead of an array?
I'm guessing I'd have to take each line of the array, analyze it with some type of ereg function or something, and if it matches then just echo the current line or add it to a new array so I can count and echo the results.
Has anybody done this before?