<?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: Which PHP Logical Operator Is Better &#8211; &#8216;and&#8217; or &#8216;&amp;&amp;&#8217;?</title>
	<atom:link href="http://www.earn-web-cash.com/2008/02/16/php-logical-operator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earn-web-cash.com/2008/02/16/php-logical-operator/</link>
	<description>Writing, Designing, and Making Money Online</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:08:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: This Life of Brian &#187; Blog Archive &#187; Binary Code and Bitwise Operators (in PHP)</title>
		<link>http://www.earn-web-cash.com/2008/02/16/php-logical-operator/comment-page-1/#comment-9730</link>
		<dc:creator>This Life of Brian &#187; Blog Archive &#187; Binary Code and Bitwise Operators (in PHP)</dc:creator>
		<pubDate>Tue, 11 Nov 2008 21:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/16/php-logical-operator/#comment-9730</guid>
		<description>[...] recognize them. If you don&#8217;t know what they are, it is easy to confuse them with the standard logical operators - &#124;&#124; and [...]</description>
		<content:encoded><![CDATA[<p>[...] recognize them. If you don&#8217;t know what they are, it is easy to confuse them with the standard logical operators &#8211; || and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binary Code and Bitwise Operators (in PHP) &#124; Web Cash</title>
		<link>http://www.earn-web-cash.com/2008/02/16/php-logical-operator/comment-page-1/#comment-1373</link>
		<dc:creator>Binary Code and Bitwise Operators (in PHP) &#124; Web Cash</dc:creator>
		<pubDate>Mon, 07 Apr 2008 02:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/16/php-logical-operator/#comment-1373</guid>
		<description>[...] recognize them. If you don&#8217;t know what they are, it is easy to confuse them with the standard logical operators - &#124;&#124; and [...]</description>
		<content:encoded><![CDATA[<p>[...] recognize them. If you don&#8217;t know what they are, it is easy to confuse them with the standard logical operators &#8211; || and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walkere</title>
		<link>http://www.earn-web-cash.com/2008/02/16/php-logical-operator/comment-page-1/#comment-1372</link>
		<dc:creator>Walkere</dc:creator>
		<pubDate>Mon, 07 Apr 2008 01:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/16/php-logical-operator/#comment-1372</guid>
		<description>Yes, the same will apply to &#124;&#124; and &#039;or&#039;.

However, it&#039;s important to note that the &#039;&amp;&#039; operator is quite different from the &#039;&amp;&amp;&#039; operator.  The same goes for &#039;&#124;&#039; and &#039;&#124;&#124;&#039;.

&#039;&amp;&#039; and &#039;&#124;&#039; are bitwise operators.  They compare the bits of two items and return either the intersection of those bits (&amp;) or the union of those bits (&#124;).

For example, 7 can be written as 0000 0111 and 17 can be written as 0001 0001.

7 &amp; 17 = 0000 0001 (or 1)

7 &#124; 17 = 0001 0111 (or 23)</description>
		<content:encoded><![CDATA[<p>Yes, the same will apply to || and &#8216;or&#8217;.</p>
<p>However, it&#8217;s important to note that the &#8216;&#038;&#8217; operator is quite different from the &#8216;&#038;&#038;&#8217; operator.  The same goes for &#8216;|&#8217; and &#8216;||&#8217;.</p>
<p>&#8216;&#038;&#8217; and &#8216;|&#8217; are bitwise operators.  They compare the bits of two items and return either the intersection of those bits (&#038;) or the union of those bits (|).</p>
<p>For example, 7 can be written as 0000 0111 and 17 can be written as 0001 0001.</p>
<p>7 &#038; 17 = 0000 0001 (or 1)</p>
<p>7 | 17 = 0001 0111 (or 23)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atli</title>
		<link>http://www.earn-web-cash.com/2008/02/16/php-logical-operator/comment-page-1/#comment-1365</link>
		<dc:creator>Atli</dc:creator>
		<pubDate>Sun, 06 Apr 2008 20:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/16/php-logical-operator/#comment-1365</guid>
		<description>Very interesting. I always assumed &#039;&amp;&amp;&#039; and &#039;and&#039; (as well as &#039;&amp;&#039;) were the same thing, just dressed up differently.

It is also worth mentioning that the rules explained here appear to apply to the &#039;&#124;&#124;&#039; and &#039;or&#039; operators as well.</description>
		<content:encoded><![CDATA[<p>Very interesting. I always assumed &#8216;&amp;&amp;&#8217; and &#8216;and&#8217; (as well as &#8216;&amp;&#8217;) were the same thing, just dressed up differently.</p>
<p>It is also worth mentioning that the rules explained here appear to apply to the &#8216;||&#8217; and &#8216;or&#8217; operators as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

