1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4. <head>
5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6. <title>No Soup for You!</title>
7. </head>
8. <body>
9. <h1>Mmm...soups</h1>
10. <?php // Script 7.3 - soups3.php
11. /* This script creates and prints out an array. */
12.
13. // Address error management, if you want.
14.
15. // Create the array:
16. $soups = array (
17. 'Monday' => 'Clam Chowder',
18. 'Tuesday' => 'White Chicken Chili',
19. 'Wednesday' => 'Vegetarian',
20. 'Thursday' => 'Chicken Noodle',
21. 'Friday' => 'Tomato',
22. 'Saturday' => 'Cream of Broccoli'
23. );
24.
25. // Print each key and value:
26. foreach ($soups as $day => $soup) {
27. print "<p>$day: $soup</p>\n";
28. }
29.
30. ?>
31. </body>
32. </html>