Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $movie = [
- 'Indiana Jones and the Kingdom of the Crystal Skull' => ['Harrison Ford,', 'Cate Blanchett,', 'Karen Allen', '.'],
- 'Indiana Jones and the Last Crusade' => ['Harrison Ford,', 'Sean Connery,', 'Denholm Elliott', '.'],
- 'Indiana Jones and the Temple of Doom' => ['Harrison Ford,', 'Kate Capshaw,', 'Amrish Puri', '.'],
- ];
- foreach ($movie as $movieTitle => $nameOfTheActor) {
- echo "title of the movie $movieTitle: \n";
- foreach ($nameOfTheActor as $movie) {
- echo "$movie\n";
- }
- echo "\n";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement