Question: Create a numeric _ array.php file. Your numeric _ array.php should satisfy the following requirements: Create a numeric array that stores at least seven items

Create a numeric_array.php file. Your numeric_array.php should satisfy the following requirements:
Create a numeric array that stores at least seven items/things (for example, books, movies, songs, countries, musicians, etc.) using the array() function
Print out all the values using a foreach loop.
Create an associative_array.php file. Your associative_array.php should satisfy the following requirements:
Create an associative array that stores at least seven things having key and value pairs (for example, author=>book,director=>movie, etc.) using the array() function
Print out all the keys and values using a foreach loop.

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 Databases Questions!