while loop
Posted: Mon Dec 01, 2008 6:29 pm
anyone how to use the while loop that increments through and prints every odd number between 1 and 49.
thanks in advance
any help is appreciated.
my guess is:
thanks in advance
any help is appreciated.
my guess is:
Code: Select all
<?php
$i = 1;
while ($i <= 49)
{
echo $i++;
}
?>