<?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, 04 Dec 2008 14:17:17 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPro.org: SPL Autoload]]></title>
      <guid>http://www.phpdeveloper.org/news/11408</guid>
      <link>http://www.phpdeveloper.org/news/11408</link>
      <description><![CDATA[<p>
On the PHPro.org website, <i>Kevin Waterson</i> has <a href="http://www.phpro.org/tutorials/SPL-Autoload.html">written up an introduction</a> to the handy autoloading functionality that comes with PHP5 releases - the __autoload method from the Standard PHP Library (SPL).
</p>
<blockquote>
The SPL __autoload() method is one of the Magic Methods supplied in PHP. The __autoload method is called whenever a class is instantiated and will load the classs the the first time it is called. No longer is include(), require, include_once() or require_once needed as the SPL autoload takes care of this interally. 
</blockquote>
<p>
He looks at how you can use it to load a directory of classes, how to use multiple autoloads in a single script and how to use it with interfaces to register a loader and include it as needed.
</p>]]></description>
      <pubDate>Fri, 14 Nov 2008 09:31:48 -0600</pubDate>
    </item>
    <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[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>
    <item>
      <title><![CDATA[Zend Developer Zone: The Standard PHP Library (SPL)]]></title>
      <guid>http://www.phpdeveloper.org/news/8727</guid>
      <link>http://www.phpdeveloper.org/news/8727</link>
      <description><![CDATA[<p>
The Zend Developer Zone has posted <a href="http://devzone.zend.com/article/2565-The-Standard-PHP-Library-SPL">a new article/tutorial</a> from <i>Ben Ramsey</i> covering one of the more powerful bits of functionality that's included with PHP5 - the Standard PHP Library (SPL).
</p>
<blockquote>
As its name implies, the goal of the Standard PHP Library-or SPL, for short-is to provide a standard library of interfaces that allows developers to take full advantage of object-oriented programming in PHP 5. [...] The functionality it provides includes, for example, the ability to define how your objects will react when iterated over with foreach, advanced array access, file and directory access, and advanced SimpleXML object handling. The largest chunk of functionality that the SPL provides comes in the form of iterators.
</blockquote>
<p>
<i>Ben</i> focuses on the iterators - three different kinds: IteratorAggregate, RecursiveIterator and SeekableIterator. The SPL also comes with a few other built-in kinds of iterators he mentions as well:
</p>
<ul>
<li>ArrayIterator
<li>DirectoryIterator
<li>FileIterator
</ul>
<p>
As a bonus, he <a href="http://devzone.zend.com/article/2565-The-Standard-PHP-Library-SPL#section3">also talks</a> about other "goodies" the SPL has to offer like exceptions, array handling, and file/directory access.
</p>
<p>
Also, check out <a href="http://benramsey.com/archives/spl-article-published/">Ben's comments</a> on his own blog about the article.
</p>]]></description>
      <pubDate>Wed, 26 Sep 2007 07:52:31 -0500</pubDate>
    </item>
  </channel>
</rss>
