get day month and day from date php code example
Example 1: php days in month
// For given month
echo cal_days_in_month(CAL_GREGORIAN, 1, 2021);
// For current month
echo date('t');
Example 2: get day from date php
// Prints the day
echo date("l") . "<br>";