©
本文档使用 PHP中文网手册 发布
Europe/Amsterdam | Europe/Andorra | Europe/Athens | Europe/Belfast |
Europe/Belgrade | Europe/Berlin | Europe/Bratislava | Europe/Brussels |
Europe/Bucharest | Europe/Budapest | Europe/Busingen | Europe/Chisinau |
Europe/Copenhagen | Europe/Dublin | Europe/Gibraltar | Europe/Guernsey |
Europe/Helsinki | Europe/Isle_of_Man | Europe/Istanbul | Europe/Jersey |
Europe/Kaliningrad | Europe/Kiev | Europe/Lisbon | Europe/Ljubljana |
Europe/London | Europe/Luxembourg | Europe/Madrid | Europe/Malta |
Europe/Mariehamn | Europe/Minsk | Europe/Monaco | Europe/Moscow |
Europe/Nicosia | Europe/Oslo | Europe/Paris | Europe/Podgorica |
Europe/Prague | Europe/Riga | Europe/Rome | Europe/Samara |
Europe/San_Marino | Europe/Sarajevo | Europe/Simferopol | Europe/Skopje |
Europe/Sofia | Europe/Stockholm | Europe/Tallinn | Europe/Tirane |
Europe/Tiraspol | Europe/Uzhgorod | Europe/Vaduz | Europe/Vatican |
Europe/Vienna | Europe/Vilnius | Europe/Volgograd | Europe/Warsaw |
Europe/Zagreb | Europe/Zaporozhye | Europe/Zurich |
[#1] abc at ed48 dot com [2014-05-26 14:02:48]
Another form, useful for EUROPE:
<?php
$lang = 'pt';
// $lang = 'en';
if (function_exists("timezone_identifiers_list"))
{
$arr_timez_id_lst4 = DateTimeZone::listIdentifiers(DateTimeZone::EUROPE);
$pt = 'Lista dos identificadores: <br><br>';
$en = 'Timezone identifiers list: <br><br>';
echo $$lang;
echo '<form id="form4" name="form4" method="post" action=""><select name="select">';
foreach( $arr_timez_id_lst4 as $timz4)
{
echo '<option value="' . $timz4 . '">' . $timz4 . '</option>';
}
echo '</select></form>';
}
else
{
$en = 'FUNCTION NOT IMPLEMENTED ON THIS PLATFORM!';
$pt = 'FUN??O N?O DEFINIDA PARA ESTE AMBIENTE!';
echo '<span style="color:#039;font-size:18px;">' . $$lang . '</span>';
}
?>
[#2] abc at ed48 dot com [2014-05-26 14:00:14]
A form that can be usefull:
<?php
// $lang = 'pt';
$lang = 'en';
if (function_exists("timezone_identifiers_list"))
{
$arr_timez_id_lst2 = timezone_identifiers_list();
$pt = 'Lista dos identificadores: <br><br>';
$en = 'Timezone identifiers list: <br><br>';
echo $$lang;
echo '<form id="form2" name="form2" method="post" action=""><select name="select">';
foreach( $arr_timez_id_lst2 as $timez2)
{
echo '<option value="' . $timez2 . '">' . $timez2 . '</option>';
}
echo '</select></form>';
}
else
{
$en = 'FUNCTION NOT IMPLEMENTED ON THIS PLATFORM!';
$pt = 'FUN??O N?O DEFINIDA PARA ESTE AMBIENTE!';
echo '<span style="color:#039;font-size:18px;">' . $$lang . '</span>';
}
?>