This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.php.net/manual/en/function.timezone-identifiers-list.php | |
<?php | |
$zones = timezone_identifiers_list(); | |
foreach ($zones as $zone) | |
{ | |
$zoneExploded = explode('/', $zone); // 0 => Continent, 1 => City | |
// Only use "friendly" continent names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Country code | |
$countries = array(); | |
$countries[1] = 'Canada (+1)'; // 1 so array doesn't start at 0 and show empty | |
$countries[] = 'China (+86)'; | |
$countries[] = 'France (+33)'; | |
$countries[] = 'Germany (+49)'; | |
$countries[] = 'India (+91)'; | |
$countries[] = 'Japan (+81)'; | |
$countries[] = 'Pakistan (+92)'; |