Re: flaking out on foreach

From: Date: Tue, 27 Aug 2002 15:18:09 +0000
Subject: Re: flaking out on foreach
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114263@lists.php.net to get a copy of this message
Bad code. Take the ';' off the end of the foreach... ROBERT MCPEAK wrote:
Why is this code: <?php $bob=array(1,2,3,5,6); foreach($bob as $foo); { echo "$foo<BR>"; } ?> Rendering only "6". That's it. Just "6". What am I missing here?
-- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

« previous php.general (#114263) next »