I am pretty sure this is a syntax problem. I am use to vb where you have to separate variable information with semicolons. This does not seem right but according to the book this syntax should be right.
Moon Phases <?php $months = array('Jan', 'Feb', 'Mar', 'Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',); $number = rand(0,11); switch ("$number") { case 0: echo " The random number is $number and the month is $months[0]"; break; case 1: echo " The random number is $number and the month is $months[1]"; case 2: echo " The random number is $number and the month is $months[2]"; break; case 3: echo " The random number is $number and the month is $months[3]"; break; case 4: echo " The random number is $number and the month is $months[4]"; break; case 5: echo " The random number is $number and the month is $months[5]"; break; case 6: echo " The random number is $number and the month is $months[6]"; break; case 7: echo " The random number is $number and the month is $months[7]"; break; case 8: echo " The random number is $number and the month is $months[8]"; break; case 9: echo " The random number is $number and the month is $months[9]"; break; case 10: echo " The random number is $number and the month is $months[10]"; break; case 11: echo" The random number is $number and the month is $months[11]"; break; default: echo $months; } ?>Never mind it works I have to type the file name correctly when testing it.