each() returns aarray($key, $value)pair, not the whole array (that would befunction id($a) { return $a; }). Basically,
expands to:Code:foreach ($a as $k => $v) { // ... }
Code:while (list($k, $v) = each($a)) { // ... }
each() returns aarray($key, $value)pair, not the whole array (that would befunction id($a) { return $a; }). Basically,
expands to:Code:foreach ($a as $k => $v) { // ... }
Code:while (list($k, $v) = each($a)) { // ... }
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks