So what does the array that each returns look like if you were to write it in array("x", "y", "z") form. Can you give me an example, I'm trying to visualize the assignment of each to list when the array is associative. I don't have a problem conceptually with how each element of the array gets mapped in this statement: list($first, $second, $thrid) = array('1st', '2nd', '3rd');
but list($first, $second, $third) = array('first'=>'1st','second'=>'2nd', 'third'=>'3rd') is troubling me since I see six elements on the right mapping to three on the left can you help me see the light. Thanks.
P.S. I'm assuming that the funcion each() returns an associative array similar to the one up top.