Re: [PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Torsten Roehr
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Torsten Roehr ([EMAIL PROTECTED]): > > > > Sorry, I mixed up the for and the foreach syntaxes. Here my (hopefully > > correct) loop proposal: > > > > for ($i; $i < 5; $i++) { > > for($i=0; ...) > > I wouldn't s

Re: [PHP] Re: Putting a stop in a foreach

2004-05-09 Thread Curt Zirzow
* Thus wrote Torsten Roehr ([EMAIL PROTECTED]): > > Sorry, I mixed up the for and the foreach syntaxes. Here my (hopefully > correct) loop proposal: > > for ($i; $i < 5; $i++) { for($i=0; ...) I wouldn't suggest this method, it is making the assumption that the indexes are numeric and sequenced