<?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>Fri, 24 May 2013 10:45:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Hakre's Blog: Iterating over Multiple Iterators at Once]]></title>
      <guid>http://www.phpdeveloper.org/news/17822</guid>
      <link>http://www.phpdeveloper.org/news/17822</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Hakre</i> looks at <a href="http://hakre.wordpress.com/2012/04/05/iterating-over-multiple-iterators-at-once/">iterating over iterators</a> (multiples all at once) using either the Append Iterator or the MultipleIterator.
</p>
<blockquote>
PHP's SPL has two build-in Iterators that deal with multiple iterators at once: <a href="http://php.net/manual/en/class.appenditerator.php">AppendIterator</a> and <a href="http://php.net/manual/en/class.multipleiterator.php">MultipleIterator</a>. In this posting I'll cover both a bit.
</blockquote>
<p>
He gives some sample code for each - showing how to use the AppendIterator to combine multiple iterators into one set and using the MultipleIterator to attach (not append/merge into one set) multiple iterator objects to a single, iteratable object. He als mentions a "lost" iterator, the <a href="http://code.google.com/p/cvphplib/source/browse/trunk/cvphplib/code/DualIterator.php?r=6">DualIterator</a> that never made it out of a SVN repository and into the main codebase.
</p>]]></description>
      <pubDate>Mon, 16 Apr 2012 12:09:44 -0500</pubDate>
    </item>
  </channel>
</rss>
