is there a way or function that counts how many times a function is called? Lets say I use a function I make X amount of time is a script, but instead of putting the amount in a variable which I manually have to edit each time I add the function it automatically updates itself into a variable?
Example:
someFunc();
someFunc();
someFunc();
someFunc();
$someFuncs = someCountFunc('someFunc');
echo $someFuncs; // Output is 4
Thank you for your time
- Rayn