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

PHP 取现阶段月头跟月尾

WBOY
WBOYOriginal
2016-06-13 13:19:45729browse

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')));

?

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