如何将星期天星期一的文本表示显示到所需的日期......我正在使用 strtotime 函数来显示日期,但是如何将文本日方添加到下面的日期。
$r=27 July 2012;
echo $r;
$cmg = strtotime("$r");
$now = time(); //25 July 2012
$timeleft = $cmg-$now;
$daysleft = round((($timeleft/24)/60)/60); //probably...
echo " There are $daysleft days left!";
这会输出一个日期
27 July 2012
There are 2days left !
所需的输出是
27 July 2012 Friday
There are 2days left!!