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)) {
// ...
}
Printable View
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)) {
// ...
}