All pastes #419991 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-01 19:48 UTC
rendered paste body
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 movies.