foreach incompatibility

From: Date: Sat, 12 Aug 2000 19:35:08 +0000
Subject: foreach incompatibility
Groups: php.dev 
Request: Send a blank email to php-dev+get-28714@lists.php.net to get a copy of this message
The following snippet of code works fine in php-4.0.1pl2, but not in the current CVS. I'm hoping this is a bug, and not an evolution of the language. <? $foo = array("a"=>"b", "c"=>"d", "e"=>"f"); foreach (array_keys($foo) as $i) { echo "$i\n"; } ?> Help..... --pk

« previous php.dev (#28714) next »