I need an exactly opposite method of timezone_name_from_abbr(): http://php.net/manual/en/function.timezone-name-from-abbr.php
I have a list of timezones name like:
Australia/Brisbane
Australia/Hobart
Asia/Vladivostok
Australia/Lord_Howe
Asia/Magadan
Asia/Kolkata
America/Los_Angeles
......
I need method which will take timezone as a param and return me a Abbreviation of it. For example:
If I use method like:
$timeAbbr = timezone_abbr_from_name('America/Los_Angeles');
echo $timeAbbr;
Result should be:
PST