Answers for "php month of the day"

PHP
1

first day of month php

$first_day = date('Y-m-01');   $last_day = date('Y-m-t');
Posted by: Guest on August-29-2021
0

php days in month

// For given month
echo cal_days_in_month(CAL_GREGORIAN, 1, 2021);
// For current month
echo date('t');
Posted by: Guest on January-27-2021
1

php last day of month

$a_date = "2009-11-23";
echo date("Y-m-t", strtotime($a_date));
Posted by: Guest on July-28-2020

Code answers related to "php month of the day"

Browse Popular Code Answers by Language