If you have a report or process that only needs to run on the last day of the month you can use the following code to determine if today is the end of the month:

if(gmdate('t') == gmdate('d')){
    echo 'Last day of the month.';
}