I am viewing a block of code which implements both of the following iteration methods at the same time. I'm wondering if there is a practical difference between the two methods of iteration?
while (list($module) = each($module_list)) {
...
}
and
foreach ($module_list as $module) {
...
}