> From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 11:08 AM > Subject: [PHP] flaking out on foreach > > > Why is this code: > > <?php > > $bob=array(1,2,3,5,6); > > foreach($bob as $foo);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Because of the empty statement caused by the mistaken semi-colon here > { > echo "$foo<BR>"; > } > ?> > > Rendering only "6". That's it. Just "6". What am I missing here? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php