Re: $i++, incrementing by 10's

From: Date: Fri, 17 Sep 2004 06:25:15 +0000
Subject: Re: $i++, incrementing by 10's
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196940@lists.php.net to get a copy of this message
On Fri, 17 Sep 2004 14:07:08 +0800, Louie Miranda <lmiranda@gmail.com> wrote: > is it possible to increment by 10's? or 20's? > > i have this piece of code, but it selects from 1 to 1000 and counts by 1's. > for($i = 1; $i <= 1000; $i++) > Yep, just change that last part from $i++ to $i += 10, or 20, or whatever you wish.

« previous php.general (#196940) next »