Returns numerically index array with all timezone identifiers

timezone_identifiers_list

(PHP 5 >= 5.1.0)

timezone_identifiers_listReturns numerically index array with all timezone identifiers

Opis

array timezone_identifiers_list ( int $what , string $option )
array DateTimeZone::listIdentifiers ( int $what , string $country )

Parametry

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.

Zwracane wartości

Returns array on success or FALSE on failure.

Przykłady

Example #1 A timezone_identifiers_list() example

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

Powyższy przykład wyświetli coś podobnego do:

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


beseda | jubiler | jubiler kraków | prezenty | tartak | biżuteria | angielski wrocław | BMW urządzenie | tworzenie wirtualnych napędów | fotograf | systemy dociepleń | czekoladowa fontanna
Design by flankerds.com