有没有什么步骤可以传入一个日期,返回该日期是当月第几天

WBOY
Release: 2016-06-13 11:10:12
Original
873 people have browsed it

有没有什么方法可以传入一个日期,返回该日期是当月第几天?
如题,我貌似没有找到,就是一个类似jddayofweek的方法


------解决方案--------------------
当月第几天?
date('d',strtotime($str));
------解决方案--------------------
指定日期,返回这个日期当月是第几天,那你直接获取天数不就可以的,比如:2013-1-5 不就是一月份的第5天吗?
------解决方案--------------------
date('d',strtotime(日期))
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!