Home  >  Article  >  Backend Development  >  php获取某年某月的天数可以吗(不用cal_days_in_month)解决方法

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

WBOY
WBOYOriginal
2016-06-13 12:06:38983browse

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

由于服务器上当时好象没编译进去,有其他办法获取某年某月 的天数吗?
------解决思路----------------------
date("t",strtotime("2014-02-01"));

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