note 31454 rejected from control-structures.foreach by spic
| From: | spic@php.net | Date: | Tue, 22 Apr 2003 16:25:11 +0000 |
| Subject: | note 31454 rejected from control-structures.foreach by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46944@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.