不确定我是否正确理解你,但如果你想显示当天的特别节目,取决于当天。。。我粗略地描述了你如何着手这样做。
Example:
$current_day = date(\'N\');// 1 (for Monday) through 7 (for Sunday) - daily/weekly
//$current_day = date(\'j\');// 1 to 31 - daily
$specials = array(
\'\',
\'special 1\',
\'special 2\',
\'special 3\',
\'special 4\',
\'special 5\',
\'special 6\',
\'special 7\',
\'23\' => \'special 23\',
\'24\' => \'special 24\',
\'25\' => \'special 25\'
);
if(array_key_exists($current_day, $specials) && !empty($specials[$current_day])){
echo $specials[$current_day].PHP_EOL;
} else{
echo \'There is no special today! :(\'.PHP_EOL;
}