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

Reply via email to