<?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:38:44 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[David Otton's Blog: Neat PHP tricks: Casting Arrays to Objects]]></title>
      <guid>http://www.phpdeveloper.org/news/10834</guid>
      <link>http://www.phpdeveloper.org/news/10834</link>
      <description><![CDATA[<p>
<i>David Otton</i> has a <a href="http://www.otton.org/2008/08/14/neat-php-tricks-casting-arrays-to-objects/">handy little tip</a> if you're looking for a cleaner way to deal with array data - casting it to an object.
</p>
<blockquote>
Array notation is fine, but it can look a bit clunky when you're working with complex structures. [...] Casting the array to an object allows us to use object notation (->) and makes the code more readable.
</blockquote>
<p>
He includes examples of the casting, showing the difference between the array and object notations including a method for creating an object based on a simple array that has basic properties built in. This sort of transformation can be useful if you want consistency through out the application - just passing objects with their properties rather than arrays.
</p>]]></description>
      <pubDate>Thu, 14 Aug 2008 13:38:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nick Halstead's Blog: Reverse Polish Notation in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8399</guid>
      <link>http://www.phpdeveloper.org/news/8399</link>
      <description><![CDATA[<p>
As a follow up to a <a href="http://blog.assembleron.com/2007/08/06/back-to-basics-of-programming-part-1/">previous post</a> where he discussed reverse polish notation, <i>Nick Halstead</i> has decided to split off the code he created for that previous post into a new, sleeker post without much of the explanation and heavy on the code.
</p>
<blockquote>
My <a href="http://blog.assembleron.com/2007/08/06/back-to-basics-of-programming-part-1/">last post</a> about back to basics covered <a href="http://blog.assembleron.com/2007/08/06/back-to-basics-of-programming-part-1/">reverse polish notation</a> including a link to a <a href="http://code.assembleron.com/rpn">RPN parser</a> which I wrote to allow people to learn by example (best way in my opinion and <a href="http://blog.assembleron.com/2007/07/13/quick-programming-poll-self-taught-vs-college-taught/">in yours</a>). The post got quite long and the PHP code was not really relevant to the subject so I have decided to include in this separate post instead.
</blockquote>
<p>
There's <a href="http://blog.assembleron.com/2007/08/06/reverse-polish-notation-in-php/">two parts to the post</a> - a pseudo-code explanation that an overview of how things work and the actual code, a block of code (in the 30 line area) that runs through each item and, based on a token, pushes the value into the array differently.
</p>]]></description>
      <pubDate>Mon, 06 Aug 2007 16:56:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Utah PHP Users Group: PHP and JSON]]></title>
      <guid>http://www.phpdeveloper.org/news/4722</guid>
      <link>http://www.phpdeveloper.org/news/4722</link>
      <description><![CDATA[According to <a href="http://uphpu.org/article.php?story=20060124144346125">this post</a> on the Utah PHP User Group's website today, there's been talk of adding <a href="http://en.wikipedia.org/wiki/JSON">JSON</a> support to the Core portion of the PHP distributions.
<p>
<quote>
<i>
There has been some recent activity on the PHP Developer mailing list about the addition of JSON into the PHP Core. After reading the thread, I did a little research on JavaScript Object Notation (JSON). Here is a <a href="http://www.crockford.com/JSON/">great website</a> to read more about it.
</i>
</quote>
<p>
You can check out the discussion over on <a href="http://marc.theaimsgroup.com/?l=php-dev">the archived copy</a> of the php-dev mailing list...]]></description>
      <pubDate>Wed, 25 Jan 2006 06:30:14 -0600</pubDate>
    </item>
  </channel>
</rss>
