title: How does RecursiveIteratorIterator work in PHP?
body: <p>How does <code>RecursiveIteratorIterator</code> work? </p>
  
  <p>The PHP manual has nothing much documented or explained. What is the difference between <code>IteratorIterator</code> and <code>RecursiveIteratorIterator</code>?</p>