Home > Backend Development > PHP Tutorial > PHP DATE 如何取得当月的第一天和最后一天!

PHP DATE 如何取得当月的第一天和最后一天!

WBOY
Release: 2016-06-20 12:31:31
Original
926 people have browsed it

echo date('Y-m-01',time()).'----'.date('Y-m-t',time())


转载自:http://www.9958.pw/post/php_date

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