Home > Backend Development > PHP Tutorial > PHP 取现阶段月头跟月尾

PHP 取现阶段月头跟月尾

WBOY
Release: 2016-06-13 10:39:31
Original
942 people have browsed it

PHP 取当前月头跟月尾

?

月头:

$monthstart = date('Y.m.d', mktime(0, 0, 0, date('m'), 1, date('Y')));

?

?

月尾:

$monthend = date('Y.m.d', mktime(0, 0, 0, date('m')+1, 0, date('Y')));

?

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