<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Odd or Even Number</title>
	<atom:link href="http://magp.ie/2010/02/19/php-odd-or-even-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://magp.ie/2010/02/19/php-odd-or-even-number/</link>
	<description>A nest for the random, shiny, online tidbits I stumble across...</description>
	<lastBuildDate>Tue, 08 May 2012 11:07:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Ryan McCue</title>
		<link>http://magp.ie/2010/02/19/php-odd-or-even-number/#comment-44</link>
		<dc:creator><![CDATA[Ryan McCue]]></dc:creator>
		<pubDate>Thu, 15 Apr 2010 12:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://magp.ie/?p=109#comment-44</guid>
		<description><![CDATA[&lt;code&gt;$x % 2&lt;/code&gt; is the equivalent of &lt;code&gt;x mod 2&lt;/code&gt; in maths, which is the remainder when x is divided by 2. So, for 0, you get 0, for 1 you get 1, for 2 you get 0, etc. So when converted to a boolean value, any value of $x divisible by 2 will be false, and the rest will be true.

Hope that helps. :)]]></description>
		<content:encoded><![CDATA[<p><code>$x % 2</code> is the equivalent of <code>x mod 2</code> in maths, which is the remainder when x is divided by 2. So, for 0, you get 0, for 1 you get 1, for 2 you get 0, etc. So when converted to a boolean value, any value of $x divisible by 2 will be false, and the rest will be true.</p>
<p>Hope that helps. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eoin</title>
		<link>http://magp.ie/2010/02/19/php-odd-or-even-number/#comment-6</link>
		<dc:creator><![CDATA[Eoin]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 16:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://magp.ie/?p=109#comment-6</guid>
		<description><![CDATA[Hey Kevin! 1st comment on my blog... you win a prize! 

I&#039;ll buy you a pint in WCSF :)]]></description>
		<content:encoded><![CDATA[<p>Hey Kevin! 1st comment on my blog&#8230; you win a prize! </p>
<p>I&#8217;ll buy you a pint in WCSF <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Conboy</title>
		<link>http://magp.ie/2010/02/19/php-odd-or-even-number/#comment-5</link>
		<dc:creator><![CDATA[Kevin Conboy]]></dc:creator>
		<pubDate>Thu, 11 Mar 2010 02:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://magp.ie/?p=109#comment-5</guid>
		<description><![CDATA[I&#039;ve always used if($x%2 == false) which I think means it&#039;s odd, I can never remember. And I have no idea why it works.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve always used if($x%2 == false) which I think means it&#8217;s odd, I can never remember. And I have no idea why it works.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

