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
There is probably a more elegant solution than this but you can just use php's date function:
$maxDays=date('t'); $currentDayOfMonth=date('j'); if($maxDays == $currentDayOfMonth){ //Last day of month }else{ //Not last day of the month }