<?php$timeZones = DateTimeZone::listIdentifiers(); // $timeZones = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, 'CN'); // $timeZones = DateTimeZone::listIdentifiers(DateTimeZone::AFRICA | DateTimeZone::AMERICA);echo "<pre>"; print_r($timeZones);echo "</pre>";exit;foreach ($timeZones as $key => $zoneName) { $tz = new DateTimeZone($zoneName); $loc = $tz->getLocation(); print($zoneName . " = " . $loc['comments'] . "<br>"); }
相关推荐:
以上就是php支持的时区分享的详细内容,更多请关注php中文网其它相关文章!
已抢65165个
抢已抢28755个
抢已抢15664个
抢已抢7901个
抢已抢9892个
抢已抢20054个
抢