PHP cal_info() Function

PHP cal_info Function


Definition :

In php cal_info() is used to  returns information about a specified calendar.

Syntax

cal_info(calendar);

Parameter :
Parameter Description
calendar Optional. Specifies a number that indicates which calendar to return information about:
  • 0 = CAL_GREGORIAN
  • 1 = CAL_JULIAN
  • 2 = CAL_JEWISH
  • 3 = CAL_FRENCH

Tip: If the calendar parameter is omitted, cal_info() returns info about all calendar

Let's understand with given below example :

Return information about the JULIAN

Output :