title: Search for content in functions with regex
body: <p>How would I with regular expression search for functions which contains the use of a global variable without running "global $var" first?</p>
  
  <p>The files looks like this:</p>
  
  <pre><code>class TestClass
  {
      function correctFunc()
      {
          global $var;
          $name = $var-&gt;name;
      }
  
      function invalidFuncIWantToFind()
      {
          $age = $var-&gt;user-&gt;age;
      }
  }
  </code></pre>
  
  <p>I want to find the function names of all the invalidFuncIWantToFind. At work this would have really speeded up our work but I didn't get how to do it.</p>