Re: Re: process creation

From: Date: Sun, 25 Jan 2009 14:25:42 +0000
Subject: Re: Re: process creation
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-287098@lists.php.net to get a copy of this message
On Mon, 2009-01-26 at 00:42 +1030, Michael Kubler wrote: > Hmm, are people getting confused between < and <= ? > for($icount=0;$icount<11;$icount++) (is less than 11) > for($icount=0;$icount<=10;$icount++) (is less than or equal to 10) > > Both iterate 10 times. > > Michael Kubler > *G*rey *P*hoenix *P*roductions > <http://www.greyphoenix.biz> > > > > Per Jessen wrote: > > Tom Sinclair wrote: > > > >>> Per Jessen wrote: > >>> > >>> for($icount=0;$icount<11;$icount++) > >>> > >> Iterates 10 times?? > >> Hmm > >> > > > > 10, 11 - no big difference is there? > > /Per Jessen, Zürich No, both iterate 11 times, because you start at 0. Ash www.ashleysheridan.co.uk

« previous php.general (#287098) next »