Student W

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

From Humanitarian-FOSS Project Development Site

*The Twelve Days of Christmas
*Author: Student W

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  <meta http-equiv="Content-Type"
      content="text/html; charset=iso-8859-1">
  <title>Assignment 1</title>
<body bgcolor="#ffffff">
    <h1>The Twelve Days of Christmas</h1>

        $gifts["First"] = "A partridge in a pear tree";
        $gifts["Second"] = "Two turtle doves";
        $gifts["Third"] = "Three french hens";
        $gifts["Fourth"] = "For calling birds";
        $gifts["Fifth"] = "Five golden rings";
        $gifts["Sixth"] = "Six geese a laying";
        $gifts["Seventh"] = "Seven swans a swimming";
        $gifts["Eighth"] = "Eight maids a milking";
        $gifts["Ninth"] = "Nine ladies dancing";
        $gifts["Tenth"] = "Ten lords a leaping";
        $gifts["Eleventh"] = "Eleven pipers piping";
        $gifts["Twelfth"] = "Twelve drummers drumming";
        $verse = "";

	foreach($gifts as $day=>$gift){
		$verse = $gift . $verse;
		print "On the {$day} day of Christmas, my true love gave to me {$verse} \n";

Personal tools