Home >Backend Development >PHP Tutorial >php获取某年某月的天数可以吗(不用cal_days_in_month)

php获取某年某月的天数可以吗(不用cal_days_in_month)

WBOY
WBOYOriginal
2016-06-23 14:24:281020browse

如题。

由于服务器上当时好象没编译进去,有其他办法获取某年某月 的天数吗?


回复讨论(解决方案)

date("t",strtotime("2014-02-01"));

牛B!!!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn