1 for ($i=1; $i < 13; $i++) { 
 2 
 3     $date = strtotime(date("2015-$i-01"));
 4 
 5     $firstday = date("Y-m-01",$date);
 6 
 7     $lastday = date("Y-m-t",$date);
 8 
 9     echo $firstday.'==='.$lastday.'<br/>';
10 }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-01-24
相关资源
相似解决方案