<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Tutorials Code Snippets and Php Tips &#187; php country list</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/php-country-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : Country list array</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-country-list-array/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-country-list-array/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 07:21:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Usefull PHP]]></category>
		<category><![CDATA[countries array]]></category>
		<category><![CDATA[country array]]></category>
		<category><![CDATA[php countries]]></category>
		<category><![CDATA[php countries array]]></category>
		<category><![CDATA[php country array]]></category>
		<category><![CDATA[php country drop down]]></category>
		<category><![CDATA[php country list]]></category>
		<category><![CDATA[php country list array]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=304</guid>
		<description><![CDATA[In my point of view, a very usefull and common thing we need when we build for example a membership site it&#8217;s country list array. I will do it within next function then will show how to use it : &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-country-list-array/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In my point of view, a very usefull and common thing we need when we build for example a membership site it&#8217;s country list array. I will do it within next function then will show how to use it :</p>
<p><a href="http://www.crivionweb.com/countryList.phps">Click here to get the function</a></p>
<p>And here&#8217;s how to use it for example to generate a select (drop down) with options to list countries:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$countryList <span class="phpOperator">=</span><span class="htmlText"> countryArray</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="htmlText">
print </span><span class="phpString">"<span class="phpOperator">&lt;</span>select name=\"</span>countryList\<span class="phpString">"<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpKeyword">
foreach<span class="phpOperator">(</span></span>$countryList<span class="phpKeyword"> as </span>$simbol <span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span> $country<span class="phpOperator">)</span> <span class="phpOperator">{</span>
<span class="htmlText">
print </span><span class="phpString">"<span class="phpOperator">&lt;</span>option value=\"</span>$simbol\<span class="phpString">"<span class="phpOperator">&gt;</span>$country<span class="phpOperator">&lt;</span>/option<span class="phpOperator">&gt;</span>\n"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="htmlText">
print </span><span class="phpString">"<span class="phpOperator">&lt;</span>/select<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Simply usefull!</p>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-country-list-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

