What time zones does php7 support? This article mainly shares with you the time zone examples supported by PHP, hoping to help you understand these time zones.
All time zones supported by php7:
"; print_r($timeZones);echo "
Copy after login
";exit;foreach ($timeZones as $key => $zoneName) { $tz = new DateTimeZone($zoneName); $loc = $tz->getLocation(); print($zoneName . " = " . $loc['comments'] . "
"); }
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!