就是这样,我必须设置日期、月份和年份,但这就是我在这里遇到问题的原因:
现在的问题如何。(问题是在日期和年份之前会有“array ....”。)“ArrayTirsdag 11 Jun 2013”
想要这样:“Tirsdag 2013 年 6 月 11 日”
echo "<td>" .
$days = array("Mandag","Tirsdag", "Onsdag","Torsdag","Fredag","Lørdag","Søndag");
$months = array("Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec");
$timestamp = strtotime($c->pubDate);
$dayInWeek = $days[date('N', $timestamp)-1];
$month = $months[date('n', $timestamp)-1];
$dayInMonth = date('d', $timestamp);
$year = date('Y', $timestamp);
echo $dayInWeek . ' ' .$dayInMonth. ' '.$month.' '.$year
. "</td>";