It's supposed to count to ten (1 2 3 4 5 6 7 8 9 10) but it just...doesn't.
<p>
<?php
$count = 1;
while ($count <= 10) {
echo "$count ";
++$count;
}
?>
</p>
It's a no go on the $count++. ++$count means $count = $count + 1. I tried your suggestion in case though, thank you for the help!
<p>
<?php
$count = 1;
while ($count <= 10) {
echo "$count ";
++$count;
}
?>
</p>
It's a no go on the $count++. ++$count means $count = $count + 1. I tried your suggestion in case though, thank you for the help!