Determine if it is the last day of the month

// returns true if it is the last day of the current month
<?
function is_last_day_of_month() {
$cur_day = date(‘j’);
$max_days = date(‘t’);
$output = $cur_day == $max_days ? true : false;
return $output;
}
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*