<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: TimeZone select for PHP</title>
	<atom:link href="http://neo22s.com/timezone-select-for-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://neo22s.com/timezone-select-for-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=timezone-select-for-php</link>
	<description>Web development, scripts, source code and IT stuff</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:49:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chema</title>
		<link>http://neo22s.com/timezone-select-for-php/comment-page-1/#comment-4551</link>
		<dc:creator>Chema</dc:creator>
		<pubDate>Mon, 31 Oct 2011 13:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://neo22s.com/?p=670#comment-4551</guid>
		<description>Hello, 

The lists of timezones comes from: http://php.net/manual/en/datetimezone.listidentifiers.php

regards</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>The lists of timezones comes from: <a href="http://php.net/manual/en/datetimezone.listidentifiers.php" rel="nofollow">http://php.net/manual/en/datetimezone.listidentifiers.php</a></p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CG</title>
		<link>http://neo22s.com/timezone-select-for-php/comment-page-1/#comment-4550</link>
		<dc:creator>CG</dc:creator>
		<pubDate>Mon, 31 Oct 2011 13:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://neo22s.com/?p=670#comment-4550</guid>
		<description>Why no Africa or Australia? Antarctica is spelt wrongly. Apart from that I found it useful, thanks.</description>
		<content:encoded><![CDATA[<p>Why no Africa or Australia? Antarctica is spelt wrongly. Apart from that I found it useful, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Timezones selector &#124; Neo22s</title>
		<link>http://neo22s.com/timezone-select-for-php/comment-page-1/#comment-4521</link>
		<dc:creator>PHP Timezones selector &#124; Neo22s</dc:creator>
		<pubDate>Wed, 26 Oct 2011 20:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://neo22s.com/?p=670#comment-4521</guid>
		<description>[...] Long time a go I wrote about how to get timezones selector. [...]</description>
		<content:encoded><![CDATA[<p>[...] Long time a go I wrote about how to get timezones selector. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chema</title>
		<link>http://neo22s.com/timezone-select-for-php/comment-page-1/#comment-4286</link>
		<dc:creator>Chema</dc:creator>
		<pubDate>Fri, 09 Sep 2011 11:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://neo22s.com/?p=670#comment-4286</guid>
		<description>nice! thanks!</description>
		<content:encoded><![CDATA[<p>nice! thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete Brooker</title>
		<link>http://neo22s.com/timezone-select-for-php/comment-page-1/#comment-4285</link>
		<dc:creator>Pete Brooker</dc:creator>
		<pubDate>Fri, 09 Sep 2011 01:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://neo22s.com/?p=670#comment-4285</guid>
		<description>Found this today, really useful and was exactly what I was looking for, so thanks.

I&#039;ve added a couple of things, one to catch if it&#039;s been posted and add the selected tag, and also I&#039;ve moved the city structure around so it shows the citys when the are multiple sub citys (Argentina for eg)

Thanks again!


	
	&lt;?php
	$timezone_identifiers = DateTimeZone::listIdentifiers();
	foreach( $timezone_identifiers as $value ){
	    if ( preg_match( &#039;/^(America&#124;Antartica&#124;Arctic&#124;Asia&#124;Atlantic&#124;Europe&#124;Indian&#124;Pacific)\//&#039;, $value ) ){
	    	$ex=explode(&quot;/&quot;,$value);//obtain continent,city	
	    	if ($continent!=$ex[0]){
	    		if ($continent!=&quot;&quot;) echo &#039;&#039;;
	    		echo &#039;&#039;;
	    	}
 
 			if(isset($ex[2])){
				$city=$ex[1].&quot;/&quot;.$ex[2];
			} else {
				$city=$ex[1];
			}
	    	
	    	$continent=$ex[0];
	    	echo &#039;&#039;.$city.&#039;&#039;;	    		
	    }
	}
	?&gt;
		
	</description>
		<content:encoded><![CDATA[<p>Found this today, really useful and was exactly what I was looking for, so thanks.</p>
<p>I&#8217;ve added a couple of things, one to catch if it&#8217;s been posted and add the selected tag, and also I&#8217;ve moved the city structure around so it shows the citys when the are multiple sub citys (Argentina for eg)</p>
<p>Thanks again!</p>
<p>	&lt;?php<br />
	$timezone_identifiers = DateTimeZone::listIdentifiers();<br />
	foreach( $timezone_identifiers as $value ){<br />
	    if ( preg_match( &#039;/^(America|Antartica|Arctic|Asia|Atlantic|Europe|Indian|Pacific)\//&#039;, $value ) ){<br />
	    	$ex=explode(&quot;/&quot;,$value);//obtain continent,city<br />
	    	if ($continent!=$ex[0]){<br />
	    		if ($continent!=&quot;&quot;) echo &#039;&#8217;;<br />
	    		echo &#8221;;<br />
	    	}</p>
<p> 			if(isset($ex[2])){<br />
				$city=$ex[1].&#8221;/&#8221;.$ex[2];<br />
			} else {<br />
				$city=$ex[1];<br />
			}</p>
<p>	    	$continent=$ex[0];<br />
	    	echo &#8221;.$city.&#8221;;<br />
	    }<br />
	}<br />
	?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Served from: neo22s.com @ 2012-02-12 12:13:31 by W3 Total Cache -->
