<?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: Equal Sign in PHP: Equality and Not Equals</title>
	<atom:link href="http://www.phpreferencebook.com/samples/equal-sign-operators/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com/samples/equal-sign-operators/</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Wed, 25 Aug 2010 05:26:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Geoff Birt</title>
		<link>http://www.phpreferencebook.com/samples/equal-sign-operators/comment-page-1/#comment-1610</link>
		<dc:creator>Geoff Birt</dc:creator>
		<pubDate>Wed, 25 Aug 2010 05:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=153#comment-1610</guid>
		<description>Matt,
 I was left wondering what the diff was until I read your comment. Thank you for making that clear. Hope they add that info to the article.</description>
		<content:encoded><![CDATA[<p>Matt,<br />
 I was left wondering what the diff was until I read your comment. Thank you for making that clear. Hope they add that info to the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Borja</title>
		<link>http://www.phpreferencebook.com/samples/equal-sign-operators/comment-page-1/#comment-1543</link>
		<dc:creator>Matt Borja</dc:creator>
		<pubDate>Fri, 23 Jul 2010 07:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=153#comment-1543</guid>
		<description>&quot;Identical ( === ): Checks if the left and right values are equal AND identical&quot;

It is also worth clarifying that the word &quot;identical&quot; is referring to comparison of variable data types. While using double equal signs (==) is appropriate for comparing the contents of two variables, using triple equal signs (===) is intended not only for comparing the contents of two variables, but comparing the data type (or the type of each variable).

The first example was a good illustration of this in the comments where variable $a is assigned an integer (int) value of 1 and variable $b was assigned a boolean (bool) value of TRUE.

Always remember that the data type of a variable is being set automatically by the *type* of value you assign it, whether it be integer (int), floating point (float), associative array (array), boolean (bool), class object (object) or even a resource (as in the case of MySQL queries). Therefore, use of the triple equal sign (===) for comparison is most appropriate when data types matter.</description>
		<content:encoded><![CDATA[<p>&#8220;Identical ( === ): Checks if the left and right values are equal AND identical&#8221;</p>
<p>It is also worth clarifying that the word &#8220;identical&#8221; is referring to comparison of variable data types. While using double equal signs (==) is appropriate for comparing the contents of two variables, using triple equal signs (===) is intended not only for comparing the contents of two variables, but comparing the data type (or the type of each variable).</p>
<p>The first example was a good illustration of this in the comments where variable $a is assigned an integer (int) value of 1 and variable $b was assigned a boolean (bool) value of TRUE.</p>
<p>Always remember that the data type of a variable is being set automatically by the *type* of value you assign it, whether it be integer (int), floating point (float), associative array (array), boolean (bool), class object (object) or even a resource (as in the case of MySQL queries). Therefore, use of the triple equal sign (===) for comparison is most appropriate when data types matter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camnio Media</title>
		<link>http://www.phpreferencebook.com/samples/equal-sign-operators/comment-page-1/#comment-1292</link>
		<dc:creator>Camnio Media</dc:creator>
		<pubDate>Tue, 12 Jan 2010 06:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=153#comment-1292</guid>
		<description>Thanks for the reference, I&#039;m working on a php project.</description>
		<content:encoded><![CDATA[<p>Thanks for the reference, I&#8217;m working on a php project.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
