Student C and Student D

[article] [edit page] [discussion] [history]

From Humanitarian-FOSS Project Development Site

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                     "http://www.w3.org/TR/html401/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Student C and Student D - 12 Days Of Christmas</title>
  </head>
<body>
  <?php
         print_array();
         function print_array() {
              $days = array('first' => 'A partridge in a pear tree.',
                          "second" => 'Two turtle doves.',
                          "third" => 'Three french hens.',
                          "fourth" => 'Four calling birds.',
                          "fifth" => 'Five golden rings.',
                          "sixth" => 'Six geese a-laying.',
                          "seventh" => 'Swans a-swimming.',
                          "eighth" => 'Maids a-milking.',
                          "ninth" => 'Nine ladies dancing.',
                          "tenth" => 'Ten lords a-leaping.',
                          "eleventh" => 'Eleven pipers piping.',
                          "twelfth" => 'Twelve drummers drumming.');
               foreach($days as $key => $value){
                    echo "On the ", $key , " day of christmas my true love gave to me " , $value ,"
"; } }  ?> </body> </html>
Personal tools