Question: 1.Create and display PHP array called $numbers with elements ranging from 0 to 100. So the output will be the multiples of 9. And then
1.Create and display PHP array called $numbers with elements ranging from 0 to 100. So the output will be the multiples of 9. And then use a PHP function to reverse the array contents and then display the contents of the array.
2. Write a PHP program to calculate and display average, lowest and highest precipitation in the last nine years of Phoenix. Precipitation in millimeters 86, 61, 121, 115, 46, 76, 135, 60, 150
3. Write a PHP program to sort the following associative array using the table below and then sort the cities and their population in a) ascending order sort by value b) ascending order sort by Key c) descending order sorting by Value d) descending order sorting by Key
| Chicago | 2,679,044 |
| Dallas | 1,379,735 |
| Houston | 2,359,480 |
| Los Angeles | 4,057,841 |
| New York City | 8,601,186 |
| Philadelphia | 1,576,596 |
| Phoenix | 1,711,356 |
| San Antonio | 1,565,929 |
| San Diego | 1,453,775 |
| San Jose | 1,033,519 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
