I want to display a number on a web page , say "250" for now but I'll manually change it periodically, but I want the number to increment up every second or so.
I found the bit of code below but it prints all the numbers in the range.
I want it to print "1" wait n amount of time then delete '1' and print '2' wait n and delete '2' and print '3', etc. all the way up to X. Then have X stay on the screen.
Am I making sense?
<?php
for ($number = 1; $number <= 10; $number++) {
echo $number . '<br>';
}
?>