Question: Create one php file with the following items: ( Do not submit multiple files ) Create an array with the names of 5 countries
Create "one php file with the following items: Do not submit multiple files
Create an array with the names of countries pts
Print the contents of the countries array using the printr function pts
Add a country name to the end of the countries array pts
Take a country name off "the beginning of the countries array" pts
Sort the countries array pts
Use a foreach loop" to display the contents of the countries array pts
Use an if statement" to check if a particular country is in the array; if so display the country name pts
Create an associative array using the names of states and their capitals pts
Use a "foreach loop" to display the contents of the associative array pts
Write comments before each of your statement to describe what the statement is supposed to do 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
