Debian Codegraph @

tests/manual/php/get-time-zones.php

raw
1 <?php
2
3 //--------------------------------------------------------------------------------------------------
4 // This script outputs a JSON array of all timezones (like "America/Chicago") that PHP supports.
5 //
6 // Requires PHP 5.2.0 or higher.
7 //--------------------------------------------------------------------------------------------------
8
9 echo json_encode(DateTimeZone::listIdentifiers());