title: Finding files with a certain string
body: <p>I'm a real noob here. I was wondering if anyone could give me a piece of code that will find all files in a certain directory and that directory's subdirectories with the user-specified string. And if possible limit filetypes to be searched e.g. <code>*.php</code></p>
  
  <p>I'm 99% it's possible maybe using <code>RecursiveDirectoryIterator</code>, <code>preg_match</code> or <code>GLOB</code> but i'm really new to php and have next-to-no knowledge on these functions.</p>
  
  <p>This kind of code is certainly easy to do with <code>UNIX</code> commands but PHP i'm kind of stuck (need PHP not unix solutions). Would appreciate all and every help I can get from you guys!</p>
  
  <p>EDIT: Seems i might have confused some of you. I want that string to be INSIDE the file not to be in the FILENAME.</p>