help me to understand this simple php code
Posted: Mon Jan 26, 2009 11:20 pm
I'm documenting some programs that contains the following PHP code:
function getLastDayOfMonth3($month, $year) {
return date('d', mktime(0, 0, 0, ($month + 1), 0, $year));
}
it's invoked on some point of the programs:
$last_day=getLastDayOfMonth3($month_proc,$year_proc);
The big question (don't laugh please), is what is does this function? does it return the last day of the month for a given month and year?
Thanks a lot for your help!!!!
function getLastDayOfMonth3($month, $year) {
return date('d', mktime(0, 0, 0, ($month + 1), 0, $year));
}
it's invoked on some point of the programs:
$last_day=getLastDayOfMonth3($month_proc,$year_proc);
The big question (don't laugh please), is what is does this function? does it return the last day of the month for a given month and year?
Thanks a lot for your help!!!!