i want to check if today is the last day of the month, but i don't really know how. i want to write it in php.
can you help?
thanks, Sebastian
i want to check if today is the last day of the month, but i don't really know how. i want to write it in php.
can you help?
thanks, Sebastian
$date = new DateTime('last day of this month');
$numDaysOfCurrentMonth = $date->format('d');
this is to find the days in any month:
$days = intval(date('t', strtotime($desiredDate)));