in reply to Perl from PHP
The first line is returning the number of days in the given month. The second line is the day of the week.$lastday = date("t", mktime(0,0,0,$month,1,$year)); $temp = (date("w",mktime(0,0,0,$month,$lastday, $year)) - $day_of_week) % 7;
|
|---|