$i = 1;
while ($i++ <=10) // start in two $i++ = 2
{
print $i++. ','; //print first becore increment
$i++; // increment
}
just wondering
base from the document in while http://www.php.net/manual/en/control-structures.while.php
it print first before increment
i wonder why the above script
increment before printing it out
if we are going to take a look at the script above
the output should be something like
2,4,7,10
any side explanation on this?