<?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>PHPDone &#187; Variables</title>
	<atom:link href="http://www.phpdone.com/blog/tag/variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpdone.com/blog</link>
	<description>Teach Yourself PHP</description>
	<lastBuildDate>Thu, 08 Apr 2010 09:10:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Guess Gender ;-)</title>
		<link>http://www.phpdone.com/blog/2009/11/guess-gender/</link>
		<comments>http://www.phpdone.com/blog/2009/11/guess-gender/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 09:26:38 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Arrays]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=124</guid>
		<description><![CDATA[Just a simple function to demonstrate the use of a few very simple but useful functions of PHP. This function simply accepts a parameter ($relation) and returns the &#8220;Gender (sex)&#8221; of the relationship.
Here&#8217;s the function:
&#60;?php
function guessGender($relation)
{
 $gen = "";
 $relation = ucwords(strtolower($relation));
 $relations = array(
      "Male" =&#62; array("Husband", "Son", "Father", "Brother"),
      "Female" =&#62; array("Wife", "Daughter", [...]]]></description>
			<content:encoded><![CDATA[<p>Just a simple function to demonstrate the use of a few very simple but useful functions of PHP. This function simply accepts a parameter ($relation) and returns the &#8220;Gender (sex)&#8221; of the relationship.</p>
<p>Here&#8217;s the function:</p>
<pre class="brush:php">&lt;?php
function guessGender($relation)
{
 $gen = "";
 $relation = ucwords(strtolower($relation));
 $relations = array(
      "Male" =&gt; array("Husband", "Son", "Father", "Brother"),
      "Female" =&gt; array("Wife", "Daughter", "Mother", "Sister")
 );

 foreach($relations as $gender =&gt; $relationType){
      if(in_array($relation, $relationType)){
           $gen = $gender;
      }
 }

 return $gen;
}
?&gt;</pre>
<p>For the ease of your understanding, I have linked each PHP function, language construct and other statements to Official PHP manual. Simply click on the provided links (in above code) to see the detailed information on each.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/guess-gender/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>POST Variable</title>
		<link>http://www.phpdone.com/blog/2009/11/post-variable/</link>
		<comments>http://www.phpdone.com/blog/2009/11/post-variable/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:02:45 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=69</guid>
		<description><![CDATA[Used for passing variables between pages on the submission of forms. The twist is, it&#8217;s hidden from the user in the URL (address) bar of a browser.

]]></description>
			<content:encoded><![CDATA[<p><span>Used for passing variables between pages on the submission of forms. The twist is, it&#8217;s hidden from the user in the URL (address) bar of a browser.</span></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/-CNLfCSnoGc&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/-CNLfCSnoGc&amp;hl=en&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/post-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GET Variable</title>
		<link>http://www.phpdone.com/blog/2009/11/get-variable/</link>
		<comments>http://www.phpdone.com/blog/2009/11/get-variable/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:58:42 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=67</guid>
		<description><![CDATA[Used for passing variables between pages on the submission of forms or manual entry in the URL (address) bar of your browser.

]]></description>
			<content:encoded><![CDATA[<p><span>Used for passing variables between pages on the submission of forms or manual entry in the URL (address) bar of your browser.</span></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/d2BQnTFvevw&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/d2BQnTFvevw&amp;hl=en&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/get-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Variables</title>
		<link>http://www.phpdone.com/blog/2009/11/variables/</link>
		<comments>http://www.phpdone.com/blog/2009/11/variables/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 10:59:35 +0000</pubDate>
		<dc:creator>Dr. Perl</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=39</guid>
		<description><![CDATA[Variables allow you to store data values in memory and are very easy to create.

]]></description>
			<content:encoded><![CDATA[<p>Variables allow you to store data values in memory and are very easy to create.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ykutr20WDIQ&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/ykutr20WDIQ&amp;hl=en&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpdone.com/blog/2009/11/variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
