I'm trying to learn PHP and I wrote this code:
<?php
$number = 1;
while ($number < 21)
{
echo "<p>I'm " . "$number" . " years old!</p>";
$number++;
}
?>
So my question is; is it possible to set-up something to see the sentences appear after a couple of seconds? Like this, first you see: I'm 2 years old!, then after like 3 seconds: I'm 3 years old! appears, then after another 3 seconds: I'm 4 years old! appears. Is that possible? Btw this is my first post, if I made a mistake please give feedback, it would help me in the future :)
Thank you
EDIT for possible future visitors: PHP isn't designed for this, but javaScript is.