Re: Re: process creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux