Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • cal_info() Function

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 105
    Comment on it

    cal_info() Function in PHP as the name suggests, is the function that returns the information about a particular calender that you have specified.

    Syntax:

    cal_info(calendar);
    

    In above function there is only one parameter which is the calender. Possible values are:

    • 0 = CAL_GREGORIAN
    • 1 = CAL_JULIAN
    • 2 = CAL_JEWISH
    • 3 = CAL_FRENCH

    This parameter is the optional one. If you didn't specify it will return information. about all calenders.

    <?php
    print_r(cal_info(0));
    ?>
    

    The above example will return information about the Gregorian calendar as follows:

    Array ( [months] => Array ( [1] => January [2] => February [3] => March [4] => April [5] => May [6] => June [7] => July [8] => August [9] => September [10] => October [11] => November [12] => December ) [abbrevmonths] => Array ( [1] => Jan [2] => Feb [3] => Mar [4] => Apr [5] => May [6] => Jun [7] => Jul [8] => Aug [9] => Sep [10] => Oct [11] => Nov [12] => Dec ) [maxdaysinmonth] => 31 [calname] => Gregorian [calsymbol] => CAL_GREGORIAN )
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: