<?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 for PHP Reference Book Blog</title>
	<atom:link href="http://www.phpreferencebook.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Fri, 23 Jul 2010 07:38:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>Comment on Equal Sign in PHP: Equality and Not Equals 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>Comment on Display all PHP Errors and Warnings by Elliott</title>
		<link>http://www.phpreferencebook.com/tips/display-all-php-errors-and-warnings/comment-page-1/#comment-1524</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Wed, 23 Jun 2010 17:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=18#comment-1524</guid>
		<description>Thanks, helped a lot!
T</description>
		<content:encoded><![CDATA[<p>Thanks, helped a lot!<br />
T</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free PDF by younis zarger</title>
		<link>http://www.phpreferencebook.com/pdf/comment-page-1/#comment-1376</link>
		<dc:creator>younis zarger</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?page_id=12#comment-1376</guid>
		<description>Hi, thanks for providing free pdf. itz really a good work i personally appretiate you</description>
		<content:encoded><![CDATA[<p>Hi, thanks for providing free pdf. itz really a good work i personally appretiate you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free PDF by Our Sponsors Rock! A Thank You From Dev-Tips &#124; Dev Tips &#124; Become a Better Developer, One Tip at a Time.</title>
		<link>http://www.phpreferencebook.com/pdf/comment-page-1/#comment-1361</link>
		<dc:creator>Our Sponsors Rock! A Thank You From Dev-Tips &#124; Dev Tips &#124; Become a Better Developer, One Tip at a Time.</dc:creator>
		<pubDate>Sun, 07 Feb 2010 23:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?page_id=12#comment-1361</guid>
		<description>[...] If you didn&#039;t win the book, you can still download a PDF version of it for free on the website! [...]</description>
		<content:encoded><![CDATA[<p>[...] If you didn&#39;t win the book, you can still download a PDF version of it for free on the website! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Equal Sign in PHP: Equality and Not Equals 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>
	<item>
		<title>Comment on PHP &amp; Ampersand: Passing by Reference by Miha</title>
		<link>http://www.phpreferencebook.com/samples/php-pass-by-reference/comment-page-1/#comment-1285</link>
		<dc:creator>Miha</dc:creator>
		<pubDate>Sat, 09 Jan 2010 16:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=165#comment-1285</guid>
		<description>Brandon is right! As of PHP 5.3.0, you will get a warning saying that &quot;call-time pass-by-reference&quot; is deprecated when you use &amp; in $foo-&gt;setBar(&quot;xxx&quot;).

Besides objects are passed by reference by default. 

Read here:http://www.webeks.net/programming/php/ampersand-operator-used-for-assigning-reference.html</description>
		<content:encoded><![CDATA[<p>Brandon is right! As of PHP 5.3.0, you will get a warning saying that &#8220;call-time pass-by-reference&#8221; is deprecated when you use &#038; in $foo->setBar(&#8220;xxx&#8221;).</p>
<p>Besides objects are passed by reference by default. </p>
<p>Read here:http://www.webeks.net/programming/php/ampersand-operator-used-for-assigning-reference.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free PDF by lawrence77</title>
		<link>http://www.phpreferencebook.com/pdf/comment-page-1/#comment-1251</link>
		<dc:creator>lawrence77</dc:creator>
		<pubDate>Mon, 04 Jan 2010 18:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?page_id=12#comment-1251</guid>
		<description>thanks for your book!</description>
		<content:encoded><![CDATA[<p>thanks for your book!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP &amp; Ampersand: Passing by Reference by Brandon</title>
		<link>http://www.phpreferencebook.com/samples/php-pass-by-reference/comment-page-1/#comment-1101</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Thu, 03 Dec 2009 14:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=165#comment-1101</guid>
		<description>As Scott said, passing a reference in from the call will work, but it has been deprecated, so the following form is preferred:
&lt;pre lang=&quot;php&quot;&gt;
function add(&amp;$var){ // The &amp; is before the argument $var
$var++;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>As Scott said, passing a reference in from the call will work, but it has been deprecated, so the following form is preferred:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> add<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// The &amp; is before the argument $var</span>
<span style="color: #000088;">$var</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fixing strtotime -1 month by Mario Lurig</title>
		<link>http://www.phpreferencebook.com/tips/fixing-strtotime-1-month/comment-page-1/#comment-1015</link>
		<dc:creator>Mario Lurig</dc:creator>
		<pubDate>Wed, 11 Nov 2009 07:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=325#comment-1015</guid>
		<description>Yes, you can absolutely use strtotimefix(&#039;+1 month&#039;) because if the problem happens at +1 month, then it will happen with -1 month as well, so the function will work the same way. You don&#039;t want to arbitrarily choose +3 weeks, because that just won&#039;t work in the long run.</description>
		<content:encoded><![CDATA[<p>Yes, you can absolutely use strtotimefix(&#8216;+1 month&#8217;) because if the problem happens at +1 month, then it will happen with -1 month as well, so the function will work the same way. You don&#8217;t want to arbitrarily choose +3 weeks, because that just won&#8217;t work in the long run.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fixing strtotime -1 month by Sarel</title>
		<link>http://www.phpreferencebook.com/tips/fixing-strtotime-1-month/comment-page-1/#comment-1014</link>
		<dc:creator>Sarel</dc:creator>
		<pubDate>Wed, 11 Nov 2009 07:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=325#comment-1014</guid>
		<description>I found the same problem, where I was running this on 2009-10-31 and asking for date(&#039;Y-m-01&#039;, strtotime(&#039;+ 1 month&#039;)) gave me 2009-12-01. For me, because &#039;01&#039; for the day, I used &#039;+ 3 weeks&#039; instead of &#039;+ 1 month&#039;.</description>
		<content:encoded><![CDATA[<p>I found the same problem, where I was running this on 2009-10-31 and asking for date(&#8216;Y-m-01&#8242;, strtotime(&#8216;+ 1 month&#8217;)) gave me 2009-12-01. For me, because &#8217;01&#8242; for the day, I used &#8216;+ 3 weeks&#8217; instead of &#8216;+ 1 month&#8217;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
