<?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 "
Related recommendations:
php outputs a list of all time zones
Use PHP to set the system time zone
Summary of how to set the time zone in PHP
The above is the detailed content of Sharing of time zone examples supported by php. For more information, please follow other related articles on the PHP Chinese website!