18)Write a PHP script to change Background
color of the browser using switch statement according to a day of
the week.
<html>
<body>
<?php
$today=date("l");
print("$today");
switch($today)
{
case "Sunday":
$bgcolor="green";
break;
case "Monday":
$bgcolor="blue";
break;
case "Tuesday":
$bgcolor="orange";
break;
case "Wednesday":
$bgcolor="red";
break;
case "Thursday":
$bgcolor="yellow";
break;
case "Friday":
$bgcolor="black";
break;
default:
$bgcolor="brown";
}
print("<body
bgcolor=\"$bgcolor\">");
?><br></body></html>