note 73902 deleted from control-structures.foreach by bobby

From: Date: Wed, 14 Mar 2007 22:37:20 +0000
Subject: note 73902 deleted from control-structures.foreach by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124459@lists.php.net to get a copy of this message
Note Submitter: Aaron ---- re: nickw at telus dot net Seeing the exact same error. It always happens just like your example, where the last iteration of foreach uses data from the second to last, instead of the actual last, row in the array. It only seems to happen if I've used "foreach($columns as &$column)" (as opposed to foreach($columns as $column)) earlier in the script, and goes away if I use that again, or if I do an unset($column) before the foreach. Sounds like a bug in php to me...

« previous php.notes (#124459) next »