$day = date("w");
switch($day) {
case 0: showLink("www.sunday.com"); break;
case 1: showLink("www.monday.com"); break;
case 2: showLink("www.tuesday.com"); break;
case 3: showLink("www.wednesday.com"); break;
case 4: showLink("www.thursday.com"); break;
case 5: showLink("www.friday.com"); break;
case 6: showLink("www.saturday.com"); break;
function showLink($url)
{
print("<a href='http://$url' target='_new'>$url</a><br />");
}
thats one way to go about it, here is a more efficient way without the switch statement, but if you are required to use switch, go with whats above...
$urls = array("http://www.sunday.com", "http://www.monday.com", "http://www.tuesday.com", "http://www.wednesday.com", "http://www.thursday.com", "http://www.friday.com", "http://www.saturday.com");
$url = $urls[date("w")];
print("<a href='$url' target='_new'>$url</a><br />");