<?Php
$a = timezone_identifiers_list();
while (list ($key, $val) = each ($a)) {
echo "$key -> $val <br>";
}
?>
Note that this way we can give an option to the users to select a time zone.
<form method=post name=f1>
<?Php
$a = timezone_identifiers_list();
echo "<select name=tz onChange=disp_TZ() class='form-control'>";
foreach($a as $key => $val) {
echo "<option value=$val>$val</option>";
}
echo "</select>";
?>
</form>