DateTimeZone::listIdentifiers headache


Posted on 16th Feb 2014 07:03 pm by admin

http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states that one can get locales by using the above mentioned function. However what I am trying to do is get country specific data.
Did you know?Explore Trending and Topic pages for more stories like this.

I am using:

Code: $timezone_identifiers = DateTimeZone::listIdentifiers(4096,"CN");
print_r($timezone_identifiers);


and I still get the whole list!. All I want is the locales per country, in this case china.

What am I doing wrong?
No comments posted yet

Your Answer:

Login to answer
233 Like 36 Dislike
Previous forums Next forums
Other forums

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

Hyperlink in PHP to MySQL record
Hello,

I am having trouble as i am new to php. I have connected to the database and I have di

Grabbing Values From an Array for Posting
I have a grid array that I am using with a form that when it hits the currently named test.php it lo

images aren't rendering
I'm trying to call a JPG file from within PHP (in an effort to hide the actual JPG folder). The imag

Validation
Hello

I know this is a really vag question.

I need to have a input field on a form th

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

Select Lists into MYSQL
Hello All, I am new to PHP @ 1 week. So borrowing code anywhere I can. I am making progress, but h

Best way to cross matching large datasets
Hi,

Im running a script where am I cross matching about 200 000 data sets with each other. Ea

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash