- reset: documentation ( source)
- each: documentation ( source)
<?php
$foo[]= array('color' => 'red' , 'size' => 'small');
$foo[]= array('color' => 'blue', 'size' => 'large');
$foo[]= array('size' => 'medium');
reset($foo);
while (list($key, $val) = each($foo)) {
echo "$key => $val\n";
}