I have a function that calls two other functions:
class myClass{
function myFunc(){
for($i=0;$i<500;$i++){
$this->func1();
$this->func2();
}
}
function func1(){
// Does some stuff
// echos statements, and can vary the amount of echoed statements
while($something == true)
echo "This is from func1, and may echo 0-1000 times";
}
function func2(){
// Does some stuff
// echos statements, and can vary the amount of echoed statements
while($something == true)
echo "This is from func2, and may echo 0-1000 times";
}
}
What I'd like to do is figure out a way that I can get the total times the functions have echo'd something and get that info to display in myFunc(). I wrote a count function, but it didn't work out the way I had expected.
Any suggestions?