Why are the states inside of cities? That's craziness.
PHP Code:
foreach($codes['Chicago']['Illinois'] as $school)
{
// loop code
}
// or
$city = 'Chicago';
$state = 'Illinois';
foreach($codes[$city][$state] as $school)
{
// loop code
}
You probably want to check to see if the keys exist with
isset() or
array_key_exists() before looping to prevent potential errors from
foreach() if you misspell them.