IntlCalendar::getType

Get the calendar type

&reftitle.description;

&style.oop;

public `string` `IntlCalendar::getType`

&style.procedural;

`string` `intlcal_get_type` `IntlCalendar` `calendar`

A string describing the type of this calendar. This is one of the valid values for the calendar keyword value `'calendar'`.

&reftitle.parameters;

`calendar`

- &intl.parameter.intl-calendar;
&reftitle.returnvalues;

A `string` representing the calendar type, such as `'gregorian'`, `'islamic'`, etc.

&reftitle.examples;

### `IntlCalendar::getType`

    <?php
    ini_set('date.timezone', 'Europe/Lisbon');
    ini_set('intl.default_locale', 'en_US');

    $cal = IntlCalendar::createInstance(NULL, '@calendar=ethiopic-amete-alem');
    var_dump($cal->getType());

    $cal = new IntlGregorianCalendar();
    var_dump($cal->getType());

&example.outputs;

    string(19) "ethiopic-amete-alem"
    string(9) "gregorian"