使用strtotime,这个月的第一天凌晨0点在PHP?

bij*_*ngo 0 php date strtotime

echo mydate(strtotime('1 am first day of this month'));
Run Code Online (Sandbox Code Playgroud)

以上是结果2017-10-01 01:00:00,但我很难在凌晨0点做到.两者都24am, 24pm, 0pm, first second不起作用.

Joh*_*nde 9

用途midnight:

echo mydate(strtotime('midnight first day of this month'));
Run Code Online (Sandbox Code Playgroud)

演示