Find all files in the current directory with the extension .php and search for the string 'file_exists' in them, then list the files that contain the string.
find . -maxdepth 1 -name '*.php' -exec grep -l 'file_exists' {} +;