PHP Tutorial :: Exercises (III)

PHP Exercise #7

Data table built with an array

According to the US census from 2000, the 10 most populated cities of United States were: New York [NY] (8.008.278), Los Angeles
[CA] (3.694.820), Chicago [IL] (2.896.016), Houston [TX] (1.953.631), Philadelphia [PA] (1.517.550), Phoenix [AZ] (1.321.045),
San Diego [CA] (1.223.400), Dallas [TX] (1.188.580), San Antonio [TX] (1.144.646), Detroit [MI] (951.270). Define an array that
contains this information about cities and populations and print a table that shows that information and the total population
in the 10 cities. Print two tables; one in which cities are ordered by their name, and other in which they are ordered by
population, from smaller to larger (ascending order).