Doug.Mellon
09-06-2005, 05:47 PM
Hey,
As of right now I am in the process of learning PHP and I have a question. In the W3 tutorial there is a script that looks like this:
<html>
<body>
<?php
$i=1;
while($i<=5)
{
echo "The number is " . $i . "<br />";
$i++;
}
?>
</body>
</html>
And I was wondering how $1++; makes the number stop at 5 as when I delete that it just keeps on going and doesnt stop.
Thanks in advance.
Adios,
Doug Mellon
www.a5monarchy.com
As of right now I am in the process of learning PHP and I have a question. In the W3 tutorial there is a script that looks like this:
<html>
<body>
<?php
$i=1;
while($i<=5)
{
echo "The number is " . $i . "<br />";
$i++;
}
?>
</body>
</html>
And I was wondering how $1++; makes the number stop at 5 as when I delete that it just keeps on going and doesnt stop.
Thanks in advance.
Adios,
Doug Mellon
www.a5monarchy.com