<?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, 15 May 2008 22:05:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Etienne Kneuss' Blog: SPL Datastructures updated]]></title>
      <guid>http://www.phpdeveloper.org/news/10170</guid>
      <link>http://www.phpdeveloper.org/news/10170</link>
      <description><![CDATA[<p>
<i>Etienne Kneuss</i> has <a href="http://www.colder.ch/news/05-12-2008/32/spl-datastructures-update.html">posted about</a> some updates to the data structures functionality in the Standard PHP Library (SPL), specifically some new additions.
</p>
<blockquote>
There finally is documentation for SplDoublyLinkedList, SplStack and SplQueue and some "new" classes: SplHeap (abstract), SplMaxHeap, SplMinHeap and SplPriorityQueue, documentation of those classes is in progress.
</blockquote>
<p>
An example of the new functionality (for SplPriorityQueue) is included in the post showing the insertion of a value into a pre-existing array (without having to slice or splice!).
</p>]]></description>
      <pubDate>Tue, 13 May 2008 09:31:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Iterating PHP objects, and readable code too!]]></title>
      <guid>http://www.phpdeveloper.org/news/10124</guid>
      <link>http://www.phpdeveloper.org/news/10124</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has a <a href="http://www.developertutorials.com/blog/php/iterating-php-objects-spl-iterato-150/">recent post</a> that talks about manipulating objects in PHP with the help of the iterators that the Standard PHP Library has to offer.
</p>
<blockquote>
It's a generally accepted fact that more readable code is more maintainable and easier for other developers to pick up. [...] Today I'm going to take a look at object iteration, most commonly found in the Standard PHP Library, and explore using the Iterator interface to simplify looping.
</blockquote>
<p>
<a href="http://www.developertutorials.com/blog/php/iterating-php-objects-spl-iterato-150/">The main part</a> of the tutorial shows how to implement the Iterator interface of the SPL to create your own custom methods, theirs being a Database version with methodsfor rewinding, reading and getting the current record you're working with.
</p>]]></description>
      <pubDate>Tue, 06 May 2008 14:34:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Marco Tabini's Blog: 5 PHP 5 features you can't afford to ignore]]></title>
      <guid>http://www.phpdeveloper.org/news/10071</guid>
      <link>http://www.phpdeveloper.org/news/10071</link>
      <description><![CDATA[<p>
<i>Marco Tabini</i> has <a href="http://mtabini.blogspot.com/2008/04/5-php-5-features-you-cant-afford-to.html">posted his list</a> of what he considers five features of PHP5 that you "can't afford to ignore" when doing your development work:
</p>
<blockquote>
Despite the fact that you may not have a choice in the matter, upgrading comes with a number of bonus new features that can help you write better code and gain access to new functionality that required a fair amount of hacking in previous version. Here's a quick list of 5 personal favourites.
</blockquote>
<p>
The feature to make his list are SimpleXML, JSON/SOAP, PDO, the Standard PHP Library and SQLite. Each has their own bonus feature(s) included too for a little extra incentive to check them out.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 17:06:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Make Me Pulse Blog: PHP6, Unicode and TextIterator features]]></title>
      <guid>http://www.phpdeveloper.org/news/9796</guid>
      <link>http://www.phpdeveloper.org/news/9796</link>
      <description><![CDATA[<p>
On the Make Me Pulse blog, there's <a href="http://blog.makemepulse.com/2008/03/13/php6-unicode-and-textiterator-features/">a look at</a> PHP6's support of Unicode in the SPL (Standard PHP Library) TextIterator handler.
</p>
<blockquote>
I've just install the last version of <a href="http://snaps.php.net/">PHP6 dev</a> and I've decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it's just my discoveries test on this features.
</blockquote>
<p>
He <a href="http://blog.makemepulse.com/2008/03/13/php6-unicode-and-textiterator-features/">steps through</a> the process he followed - enabling Unicode support, testing various output methods (including just an echo and using the TextIterator) as well as some of the manipulation methods (next/first/current) that can be used to get certain characters out of a string.
</p>]]></description>
      <pubDate>Fri, 14 Mar 2008 09:32:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[phpRiot.com: Using the PHP 5 Iterator interface with Smarty]]></title>
      <guid>http://www.phpdeveloper.org/news/9765</guid>
      <link>http://www.phpdeveloper.org/news/9765</link>
      <description><![CDATA[<p>
On the phpRiot blog, <i>Quentin Zervaas</i> has <a href="http://www.phpriot.com/blog/php5-iterator-interface-with-smarty">posted a quick tutorial</a> about using the Iterator interface (part of the Standard PHP Library) together with Smarty to loop through some objects:
</p>
<blockquote>
The PHP 5 Iterator interface is very useful for defining custom behaviour for looping over objects, however I just noticed that looping over such objects in Smarty will not work correctly. Smarty will in fact cast an object back to an array.
</blockquote>
<p>
He includes code examples of his problem to illustrate and shows how he got around the problem - a getData() function he defined that just returns the array from the object.
</p>]]></description>
      <pubDate>Mon, 10 Mar 2008 09:35:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Make Me Pulse Blog: Tips : RecursiveArrayIterator on mulitdimensional Array]]></title>
      <guid>http://www.phpdeveloper.org/news/9605</guid>
      <link>http://www.phpdeveloper.org/news/9605</link>
      <description><![CDATA[<p>
On the Make Me Pulse blog, <i>Antoine Ughetto</i> shares a method he came up with to recurse through an array using the SPL method - the RecursiveArrayIterator method.
</p>
<blockquote>
When we have a multidimensional array we have to make some recursives function to parse it. A simple way to get the keys and the value of this type of array is to use the <a href="http://fr2.php.net/manual/fr/ref.spl.php">SPL library of PHP</a>.
</blockquote>
<p>
A <a href="http://blog.makemepulse.com/2008/02/11/tips-recursivearrayiterator-on-mulitdimensional-array/">code example</a> is included, parsing through a recursive array to output each of the key/value pairs it contains (and using only about five or six lines of code to do it).
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 13:07:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Dan Scott's Blog: Oooh...looks like I've got (even more) work cut out for me]]></title>
      <guid>http://www.phpdeveloper.org/news/9451</guid>
      <link>http://www.phpdeveloper.org/news/9451</link>
      <description><![CDATA[<p>
On his blog, <i>Dan Scott</i> <a href="http://www.coffeecode.net/archives/148-Oooh...-looks-like-Ive-got-even-more-work-cut-out-for-me.html">notes</a> that the PHP language will be getting a <a href="http://www.colder.ch/news/01-16-2008/30/new-datastructures-in-spl.html">native doubly-linked list structure</a> in the coming days (as mentioned by <i>Etienne Kneuss</i>).
</p>
<blockquote>
This is fabulous news; when I wrote the <a href="http://pear.php.net/File_MARC">File_MARC</a> PEAR package, I ended up having to implement a <a href="http://pear.php.net/Structures_LinkedList">linked list class</a> in PEAR to support it.
</blockquote>
<p>
Doubly linked lists are normal lists, but the elements also have links to both the previous and next items in the list as well. Two other structures will be added right along with it - SplStack and SplQueue.
</p>]]></description>
      <pubDate>Fri, 18 Jan 2008 13:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Larry Garfield's Blog: Good SPL intro]]></title>
      <guid>http://www.phpdeveloper.org/news/8776</guid>
      <link>http://www.phpdeveloper.org/news/8776</link>
      <description><![CDATA[<p>
<i>Larry Garfield</i> <a href="http://www.garfieldtech.com/blog/good-spl-intro">points out</a> one of the better resources for those looking to learn about the Standard PHP Library functionality - the <a href="http://devzone.zend.com/article/2565-The-Standard-PHP-Library-SPL">tutorial on the Zend Developer Zone</a>.
</p>
<blockquote>
Of course, the main problem is that the <a href="http://www.php.net/spl">official documentation</a> on it sucks. At best it points to an off-site series of <a href="http://www.php.net/~helly/php/ext/spl/">class hierarchies</a>. (Technically it's not off-site, but not internal to the manual.)
</blockquote>
<p>
The <a href="http://devzone.zend.com/article/2565-The-Standard-PHP-Library-SPL">article</a> talks mainly about iterators and some other "goodies" including exceptions and array handling.
</p>]]></description>
      <pubDate>Wed, 03 Oct 2007 10:27:00 -0500</pubDate>
    </item>
  </channel>
</rss>
