<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 03:01:49 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Joseph Scott's Blog: Why PHP Strings Equal Zero]]></title>
      <guid>http://www.phpdeveloper.org/news/17679</guid>
      <link>http://www.phpdeveloper.org/news/17679</link>
      <description><![CDATA[<p>
<i>Joseph Scott</i> has a new post to his blog looking at "<a href="http://josephscott.org/archives/2012/03/why-php-strings-equal-zero/">why PHP strings equal zero</a>" - that when you use the "==" operator on a string to compare to zero, it's true.
</p>
<blockquote>
The issue of PHP strings equaling zero has come up a few times recently. [...] Running that will display Equals zero!, which at first glance probably doesn't make much sense. So what is going on here?
</blockquote>
<p>
He gets into the specifics of what's happening - a bit of type jugging, less strict comparison since it's the "==" versus "===" and how the <a href="http://php.net/manual/en/language.types.string.php">PHP manual</a> talks about strings being converted to numbers. 
</p>
<blockquote>
While I still think it is odd that the string gets cast as an integer instead of the other way around, I don't think this is a big deal. I can't recall a single time where I've ever run into this issue in a PHP app. I've only seen it come up in contrived examples like the ones above.
</blockquote>]]></description>
      <pubDate>Thu, 15 Mar 2012 09:47:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Debugging and Performance]]></title>
      <guid>http://www.phpdeveloper.org/news/6761</guid>
      <link>http://www.phpdeveloper.org/news/6761</link>
      <description><![CDATA[<p>
In another part of their series of excerpts from the Zend PHP Certification Guide (from Zend), DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Debugging-and-Performance/">this article</a> talking about debugging and performance issues and methods.
</p>
<blockquote>
Making mistakes is human, and so is fixing them. In your day-to-day programming adventures, it's inevitable to introduce bugs in your PHP code, especially when you're writing very complex applications with tens of thousands of lines of code spread across tens of files.
</blockquote>
<p>
In <a href="http://www.devshed.com/c/a/PHP/Debugging-and-Performance/">this article</a> they look at things like flattening if statements, spplitting single commands across multiple lines, and the difference between =, ==, and ===.
</p>]]></description>
      <pubDate>Thu, 23 Nov 2006 13:42:00 -0600</pubDate>
    </item>
  </channel>
</rss>
