Files and Folders: Search File Contents
Nick Pap (contact me)
This class can be used to search files in a directory for a given text phrase.
It can traverse a given directory recursively to locate files with certain file name extensions.
The class opens the files found and checks whether they contain the search phrase.
It returns an array with the list of all files that contain the search phrase.
Click here for detailed information about this class on phpclasses.org