Question: Create php file, main.css and index.html create an array with the names of 5 countries ( 5 pts ) Print the contents of the countries

Create php file, main.css and index.html
create an array with the names of 5 countries (5 pts)
Print the contents of the countries array using the print_r() function (5 pts)
Add a country name to the end of the countries array (5 pts)
Take a country name off "the beginning of the countries array" (5 pts)
Sort the countries array (5 pts)
Use a" foreach loop" to display the contents of the countries array (5 pts)
Use an "if statement" to check if a particular country is in the array; if so, display the country name (5 pts)
Create an associative array using the names of 5 states and their capitals (5 pts)
Use a "foreach loop" to display the contents of the associative array (5 pts)
Write comments before each of your statement to describe what the statement is supposed to do (5 pts)
Leave some space after print commands to make it easier to read

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!