DateTimeZone::listAbbreviations
DateInterval
DateTimeZone
PHP Manual

# DateTimeZone::listIdentifiers

(PHP 5 >= 5.3.0)

DateTimeZone::listIdentifiers — Returns numerically index array with all timezone identifiers

### Descripción

array DateTimeZone::listIdentifiers ([ int `$what`= DateTime::ALL [, string `$country`= NULL ]] )
array timezone_identifiers_list ([ int `$what`= DateTime::ALL [, string `$country`= NULL ]] )

### Lista de parámetros

`object`

  Procedural style only: A DateTime object returned by date_create()

`what`

  One of DateTimeZone class constants, defaults to `DateTimeZone::ALL`.

`country`

  A two-letter ISO 3166-1 compatible country code.

### Valores retornados

Returns array on success or `FALSE` on failure.

### Ejemplos

Example #1 A timezone_identifiers_list() example

`<?php
$timezone_identifiers = DateTimeZone::listIdentifiers();
for ($i=0; $i < 5; $i++) {
echo "$timezone_identifiers[$i]\n";
}
?>`

El resultado del ejemplo seria algo similar a:

    Africa/Abidjan
    Africa/Accra
    Africa/Addis_Ababa
    Africa/Algiers
    Africa/Asmera

### Ver también

- timezone_abbreviations_list() - Alias of DateTimeZone::listAbbreviations

DateTimeZone::listAbbreviations
DateInterval
DateTimeZone
PHP Manual