PHP获取今天、本周、今年开始时间戳 注:以下代码在php8.0上测试通过,其它版本的php理论上也是可行的。
<?php echo strtotime('00:00:00'); //今天开始时间戳 echo strtotime('this week 00:00:00'); //本周开始时间戳 echo strtotime('01/01 00:00:00');//今年开始时间戳