The number of days in the month of the php date. The number of days of the month where the php date is located publicfunctiondaysOfMonth ($ yearNULL, $ monthNULL) {if ($ yearNULL) {$ year $ this-getPart (yy);} if ($ monthNULL) {$ month $ this-getPart (m php date's day of the month
Public function daysOfMonth ($ year = NULL, $ month = NULL ){
If ($ year = NULL ){
$ Year = $ this-> getPart ('yy ');
}
If ($ month = NULL ){
$ Month = $ this-> getPart ('mm ');
}
If ($ month = 2)
{
If ($ year % 4 = 0 & $ year % 100! = 0) | $ year %
400 = 0)
$ Result = 29;
Else
$ Result = 28;
}
Elseif ($ month = 4 | $ month = 6 | $ month = 9 | $ month
= 11)
$ Result = 30;
Else
$ Result = 31;
Return $ result;
}
Using public function daysOfMonth ($ year = NULL, $ month = NULL) {if ($ year = NULL) {$ year = $ this-getPart ('yy ');} if ($ month = NULL) {$ month = $ this-getPart ('m...