Calculate number of function calls in the the same function
<p>How to calculate(determine) in php the total number of a function calls but the result of this must be in the same function for which I calculate this number.</p>

<p>Exemple:
The test() function is called 100 times(this number is variable and so I don't know it from beginning). I want to find this number in the block of function</p>

<pre><code>test();

function test(){



$no_calls =....
echo $no_calls;  

}
</code></pre>

<p>I Want the message from echo to be shown only once not to every call of function.</p>
