<?php // directory that contains the images$image_path = "/images/";// array that contains the images. The position in the array maps to the day of the week. 1 = monday, 2 = tuesday, etc.$images = array("monday.jpg", "tuesday.jpg", "wednesday.jpg", "thursday.jpg", "friday.jpg", "saturday.jpg", "sunday.jpg");// Output the image:print '<img src="' . $image_path . $images[date('N')+1] . '" alt="description of picture" />';// Note: date('N') function requires PHP 5.1.0 or higher (as documented in php.net/date)?>