本文引用来自

http://hi.baidu.com/yflife/item/fd00ef142c5967fcdceeca84

php 获取指定月最后一天:

<?php
function getthemonth($date)
{
$firstday = date('Y-m-01', strtotime($date));
$lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day"));
return $lastday;
}
echo getthemonth('2011-5-16');
?>

相关文章:

  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-11-22
  • 2021-06-03
猜你喜欢
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案