Please be patient with me as I am only a beginner. I am trying to learn this on my own using online tutorials. I have written the following code;
<?php
$counter=30;
while ($counter>-1)
{
echo $counter;
$counter=$counter+-1;
if ($counter==0){
while ($counter<30)
{
echo $counter++;
$counter=$counter++;
}
}
}
?> It runs continuously. I want it to count down to zero, up to 30 again, and then stop. I also want to know how I can get each number to appear on a separate line instead of all the numbers appearing on the same line.