The workshop is designed to help you anticipate possible questions, review what you've learned, and begin putting your knowledge into practice.
Quiz
1.
What construct can you use to define an array?
2.
What function would you use to join two arrays?
Answers
1.
array()
2.
array_merge()
Activities
Create a multidimensional array of movies organized by genre. This should take the form of an associative array with genres as keys, such as Science Fiction, Action, Adventure, and so forth. Each of the array's elements should be an array containing movie names, such as Alien, Terminator 3, Star Wars, and so on. When your arrays are created, loop through them, printing the name of each genre and its associated movie(s).