【发布时间】:2016-11-06 21:49:13
【问题描述】:
我一直试图在一个月的字符串中获得第一天。 我有两个变量:
$year = 2016;
$month = "November";
我想得到 2016 年 11 月的第一天(即星期二)。 我试过了
$string = "$year-$month-01";
echo date("l",strtotime($string));
还有
$string = "$year-$month-01";
echo date("l",$string);
请帮帮我!
【问题讨论】: