Alex Forseth8,016 Points
get_item_html function structure. How does it work?
How do the arguments (0:27 she says parameters but I am pretty sure they are arguments) $id and $item communicate with the associative array in the data.php file? How does the function know to assign $id to the catalog key and the $item to the interior array keys? When nothing inside of those arrays have been assigned a variable named $id or $item?
Stuart Wright41,068 Points
At around the 3:00 mark, she initiates the foreach loop:
<?php foreach ($catalog as $id => $item)
This is PHP syntax for looping over an associative array ($catalog), and assigning the $id variable to the current key, and the $item variable to the current value. These can then be passed into the function.