Revision: 20808
Updated Code
at November 25, 2009 07:16 by AzizLight
Updated Code
<select id="timezone" name="timezone"> <?php $timezone_identifiers = DateTimeZone::listIdentifiers(); foreach($timezone_identifiers as $value) { if (preg_match('/^(America|Antartica|Arctic|Asia|Atlantic|Europe|Indian|Pacific)\//', $value)) { echo "<option>$value</option>"; } } ?> </select>
Revision: 20807
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 25, 2009 07:14 by AzizLight
Initial Code
<select id="TIMEZONE" name="TIMEZONE"> <?php $timezone_identifiers = DateTimeZone::listIdentifiers(); foreach( $timezone_identifiers as $value ){ if ( preg_match( '/^(America|Antartica|Arctic|Asia|Atlantic|Europe|Indian|Pacific)\//', $value ) ){ echo "<option>$value</option>"; } } ?> </select>
Initial URL
http://neo22s.com/timezone-select-for-php/
Initial Description
Simple script that returns to us a list with possible TimeZones
Initial Title
TimeZone select for PHP
Initial Tags
php
Initial Language
PHP