<?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>NewSourceMedia Blog &#187; compair</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/compair/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>PHP how to find Odd and Even numbers</title>
		<link>http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/</link>
		<comments>http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/#comments</comments>
		<pubDate>Tue, 30 Nov 1999 06:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Math and Numbers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[compair]]></category>
		<category><![CDATA[digits]]></category>
		<category><![CDATA[even]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[match]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[odd]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/1969/12/31/php-how-to-find-odd-and-even-numbers/</guid>
		<description><![CDATA[Here is how to find odd and even numbers in php. How to find if a number is odd or even? In PHP I learn to use the MOD (%) operator. see below for an example: $i = 10; if &#8230; <a href="http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here is how to find odd and even numbers in php.
<span id="more-173"></span>

How to find if a number is odd or even?
In PHP I learn to use the MOD (%) operator. see below for an example: <code>$i = 10;</code>

<code>if ($i % 2) {
echo "$i is odd";
} else {
echo "$i is even";
}
</code>

You can also use the PHP "&amp;" operator that will give you better   performance
You can use the PHP code like so:

<code>$i = 10;
if ( $i&amp;1 )
{
echo "$i is odd";
}
else
{
echo "$i is even";
}</code>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-how-to-find-odd-and-even-numbers/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
