How do I delete the last echo in a while loop?
Posted: Mon Feb 22, 2010 3:30 pm
Hello again, php Technorati. Here is my problem i want to see a number for each time a function is performed.
Hence I did a $count++ and echo $count in a while loop. Now How do I delete the last $count echoed so that I will see numbers that increase, instead of a list of numbers representing each time the function was performed?
Pleas show me the way.
As always, thanks in advance,
Batoe
Many obstacles and obstructions lie in the path, but so does success! The unkown Optimist
Hence I did a $count++ and echo $count in a while loop. Now How do I delete the last $count echoed so that I will see numbers that increase, instead of a list of numbers representing each time the function was performed?
Code: Select all
While loop;{
$count++;
echo $count;
delete $count?????????????
}
As always, thanks in advance,
Batoe
Many obstacles and obstructions lie in the path, but so does success! The unkown Optimist