I've searched online and am unable to find how to increment by more than one in a for loop.

for ($i = 1; $i <= 6; $i++) {

Is it possible to increment $i by 5?

Sure.

for ($i = 1; $i <= 6; $i+=5) {

-philip

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to