Re: [PHP] flaking out on foreach

2002-08-27 Thread Gerard Samuel
Bad code. Take the ';' off the end of the foreach... ROBERT MCPEAK wrote: >Why is this code: > > > $bob=array(1,2,3,5,6); > > foreach($bob as $foo); > { > echo "$foo"; >

Re: [PHP] flaking out on foreach

2002-08-27 Thread Adam Voigt
Don't put a semicolon after the foreach. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-27 at 11:07, ROBERT MCPEAK wrote: > Why is this code: > > > $bob=array(1,2,3,5,6); > > foreach($bob as $foo); >

RE: [PHP] flaking out on foreach

2002-08-27 Thread Matt Schroebel
> From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 11:08 AM > Subject: [PHP] flaking out on foreach > > > Why is this code: > > > $bob=array(1,2,3,5,6); > > foreach($bob as $foo);