Answers for "display day month php"

PHP
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

Browse Popular Code Answers by Language