PHP timezone abbreviations in array one timezone or all timezones


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $timezone_abbreviations = DateTimeZone::listAbbreviations();
  2.  
  3. // One timezone's details
  4. print_r($timezone_abbreviations["acst"]);
  5.  
  6. // List all timezones
  7. print_r($timezone_abbreviations);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.