- strpos: documentation ( source)
- phpversion: documentation ( source)
- timezone_abbreviations_list: documentation ( source)
<?php
$pos = strpos('PHP 5.6.10', phpversion());
$pos_old = strpos('5.5.9', phpversion());
$arr_new = array();
$arr_old = array();
if($pos !== false){
$arr = timezone_abbreviations_list();
$i=1;
foreach($arr as $key => $a){
foreach($a as $index => $value){
echo $i.'. Abbrevation : '.$key.', offset : '.$value['offset'].', timezone : '.$value['timezone_id'];
echo "\n";
$i++;
}
}
}
?>