<?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: Guess Gender ;-)</title>
	<atom:link href="http://www.phpdone.com/blog/2009/11/guess-gender/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpdone.com/blog/2009/11/guess-gender/</link>
	<description>Teach Yourself PHP</description>
	<lastBuildDate>Thu, 08 Apr 2010 12:58:05 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Waqas Bin Hasan</title>
		<link>http://www.phpdone.com/blog/2009/11/guess-gender/comment-page-1/#comment-7</link>
		<dc:creator>Waqas Bin Hasan</dc:creator>
		<pubDate>Mon, 23 Nov 2009 06:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpdone.com/blog/?p=124#comment-7</guid>
		<description>An improvement can be made to this by lowering iterations as following, just replace:

$gen = $gender;

with 

return $gender;

in if clause within the foreach loop. This will stop iterating the loop as soon as it finds the match and rest of the iterations will not occur and will save time.</description>
		<content:encoded><![CDATA[<p>An improvement can be made to this by lowering iterations as following, just replace:</p>
<p>$gen = $gender;</p>
<p>with </p>
<p>return $gender;</p>
<p>in if clause within the foreach loop. This will stop iterating the loop as soon as it finds the match and rest of the iterations will not occur and will save time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
