Home >Backend Development >PHP Tutorial >Several examples of PHP getting the first and last day of the month where the specified date is located_PHP Tutorial
Sample code
The code is as follows | |||||
//Get the first and last day of the month where the specified date is located
|
Sample code
//PHP gets the first and last day of the week on the specified date
The code is as follows | |||||
function getdays($day){
|
示例代码
代码如下 | |||||
$date= 要处理的日期
//月份第一天的日期 |