Answers for "get last week of year in php"

PHP
1

last day of previous month in php

$lastDay = date('t',strtotime('last month'));

print_r($lastDay);
Posted by: Guest on November-28-2020
-1

check if is the last day of the month php

if(gmdate('t') == gmdate('d')){
    echo 'Last day of the month.';
}
Posted by: Guest on December-10-2020

Browse Popular Code Answers by Language