php: how to know what file has contains a php function that is called
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2222142/how-to-find-out-where-a-function-is-defined">How to find out where a function is defined?</a>  </p>
</blockquote>



<p>in a client's website I have a php code:</p>

<pre><code>return userHasActivePurchase($iId);
</code></pre>

<p>The website is full of icludes, requires.
I have made a full text search on "userHasActivePurchase" to find out what php file does contain this function without success.</p>

<p>My question is : <strong>I have a function name and I would like to know what php files contains that function.</strong></p>

<p>I tried with:</p>

<pre><code>print_r(userHasActivePurchase);
</code></pre>

<p>without success.</p>

<p>Please help !</p>
