Using foreach to walk through the capital array

the following demonstrates the output from the print_r sttm:
Array
(
    [CA] => Sacramento
    [OR] => Salem
    [TX] => Austin
)

echo the State and the City:
Sacramento, CA
Salem, OR
Austin, TX


echo the City:
Sacramento
Salem
Austin