<?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, 08 Jan 2009 03:42:55 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Null and Empty Strings]]></title>
      <guid>http://www.phpdeveloper.org/news/11496</guid>
      <link>http://www.phpdeveloper.org/news/11496</link>
      <description><![CDATA[<p>
On DevShed today, there's a <a href="http://www.devshed.com/c/a/MySQL/Null-and-Empty-Strings/">new tutorial</a> posted looking at two things that can cause headaches for PHP developers (especially when evaluating and comparing values) - nulls and empty strings.
</p>
<blockquote>
Anyone who has programmed for any length of time has encountered the concepts of null and empty strings. They are not the same, and confusing the two can cause some serious problems. This article deals with these concepts in the context of PHP and MySQL.
</blockquote>
<p>
They start with a bit of a quiz before getting into how to handle them correctly - making null "safe" and working with it correctly in a MySQL context. SQL statements and table structures are included for their examples.
</p>]]></description>
      <pubDate>Wed, 03 Dec 2008 11:16:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Clay Loveless' Blog: PHP and JSON: Cut #987]]></title>
      <guid>http://www.phpdeveloper.org/news/7364</guid>
      <link>http://www.phpdeveloper.org/news/7364</link>
      <description><![CDATA[<p>
In a <a href="http://killersoft.com/randomstrings/2007/02/28/php-and-json-cut-987/">new post</a> today, <i>Clay Loveless</i> talks about some issues he's been having with PHP and JSON, specifically with the JSON encoding method in PHP 5.2.1.
</p>
<blockquote>
As of PHP 5.2.1, json_decode() no longer follows <a href="http://www.ietf.org/rfc/rfc4627.txt">the published standards</a> for JSON-encoded texts. Why not? For no reason other than the convenience of those ignorant of JSON standards.
</blockquote>
<p>
His complaint stems from the results of a vat_dump statement - prior to this version it would give a NULL, but now it returns a "bool(true)" value back, resulting in some breakage of previous scripts. He spends the rest of the post explaining his voyage through the JSON world and how things are supposed to behave. He also digs a little deeper into the var_dump issue and why he thinks it's such a bad thing.
</p>]]></description>
      <pubDate>Thu, 01 Mar 2007 08:43:00 -0600</pubDate>
    </item>
  </channel>
</rss>
