需要找到时间戳的第一分钟的的第一天的的当前周.
做这个的最好方式是什么?
<?php
$ts = mktime(); // this is current timestamp
?>
Run Code Online (Sandbox Code Playgroud) 运行
var_dump(new \DateTime('first day of this week'));
Run Code Online (Sandbox Code Playgroud)
返回9月1日
这是一个错误,有没有解决方法?