note 31454 added to control-structures.foreach
| From: | vokiel at hotmail dot com | Date: | Tue, 22 Apr 2003 16:15:02 +0000 |
| Subject: | note 31454 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46943@lists.php.net to get a copy of this message | ||
$value = NULL;
foreach($value as $key => $val) {
}
This produces a run-time error.. go figure! Note to any php dev reading, this is a ridiculous
behavior folks, no one should have to test their values before passing them into a foreach loop,
it's simply bad performance.. Wish you guys would bitch less at perl and follow their lead a
bit more.
--
http://www.php.net/manual/en/control-structures.foreach.php
http://master.php.net/manage/user-notes.php?action=edit+31454
http://master.php.net/manage/user-notes.php?action=delete+31454
http://master.php.net/manage/user-notes.php?action=reject+31454