Suppose an array of country codes and country names is created with a statement like this:
$country_codes = array('DEU => 'Germeny', 'JPN' => "Japan', 'ARG" => 'Argentina', 'USA' => 'United States');
If you want to use echo statements to display a table of all of the codes and names, you could code those statements within a loop that starts like this:
foreach ($country_codes as $code => $name) {