<?php$timeZones = DateTimeZone::listIdentifiers(); // $timeZones = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, 'CN'); // $timeZones = DateTimeZone::listIdentifiers(DateTimeZone::AFRICA | DateTimeZone::AMERICA);echo "<pre class="brush:php;toolbar:false">"; print_r($timeZones);echo "";exit;foreach ($timeZones as $key => $zoneName) { $tz = new DateTimeZone($zoneName); $loc = $tz->getLocation(); print($zoneName . " = " . $loc['comments'] . "
#相關推薦:
以上是php支援的時區實例分享的詳細內容。更多資訊請關注PHP中文網其他相關文章!