Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : MCAL Functions : mcal_days_in_month

mcal_days_in_month

Returns the number of days in a month (PHP 4)
int mcal_days_in_month ( int month, int leap_year )


Related Examples ( Source code ) » mcal_days_in_month


Code Examples / Notes » mcal_days_in_month

tmhesket_at_bradforddot_ac_dotuk

In case anyone gets confused in the same way I did, the "int leap year" parameter is not for the year itself.
"int leap year" is a boolean indicating whether the year in question is a leap year.
If you have $month and $year, you can find out the number of days easily:
mcal_days_in_month($month, mcal_is_leap_year($year))


Change Language


Follow Navioo On Twitter
mcal_append_event
mcal_close
mcal_create_calendar
mcal_date_compare
mcal_date_valid
mcal_day_of_week
mcal_day_of_year
mcal_days_in_month
mcal_delete_calendar
mcal_delete_event
mcal_event_add_attribute
mcal_event_init
mcal_event_set_alarm
mcal_event_set_category
mcal_event_set_class
mcal_event_set_description
mcal_event_set_end
mcal_event_set_recur_daily
mcal_event_set_recur_monthly_mday
mcal_event_set_recur_monthly_wday
mcal_event_set_recur_none
mcal_event_set_recur_weekly
mcal_event_set_recur_yearly
mcal_event_set_start
mcal_event_set_title
mcal_expunge
mcal_fetch_current_stream_event
mcal_fetch_event
mcal_is_leap_year
mcal_list_alarms
mcal_list_events
mcal_next_recurrence
mcal_open
mcal_popen
mcal_rename_calendar
mcal_reopen
mcal_snooze
mcal_store_event
mcal_time_valid
mcal_week_of_year
eXTReMe Tracker