Using RecursiveIteratorIterator with namespaces?
<p>My problem is that when I'm using namespaces, I can't use the RecursiveIteratorIterator Class of the Standard PHP Library.
The following code :</p>

<pre><code>&lt;?php namespace mynamespace;

    $arr = Array("abc", Array("def", "ghi", Array("jkl")));
    $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($arr));
    $result = iterator_to_array($it, false);

?&gt;
</code></pre>

<p>Returns:</p>

<blockquote>
  <p>PHP Fatal error:  Uncaught Error: Class 'mynamespace\RecursiveIteratorIterator' not found in ...</p>
</blockquote>