php算出幾天後是幾號 星期幾$the_day = '2012-01-01';
//某一天 $unix_time = strtotime($the_day);
//轉換成格林威治時間格式$days = 40; //抓40天後$unix_time += ($days*24*60*60); //一天86400秒$lated_day = date('Y-m-d', $unix_time); //40天後日期
$week_day = date('w', $unix_time); //40天後星期幾
沒有留言:
張貼留言