title: How can I make ArrayIterator or ArrayObject work with implode?
body: <p>I'm having a few problems with ArrayIterator (And, indeed, the same problem with ArrayObject).</p>
  
  <p>For 99% of everything, my extended ArrayIterator behaves like an array and is working great.</p>
  
  <p>Unfortunately, implode() does not like being given an ArrayIterator (or ArrayObject).  </p>
  
  <p>I can't spot in the docs anywhere which suggests any other classes to implement on by extended ArrayIterator, nor any other methods to override.</p>
  
  <p>Can anyone suggest how to get this working?  (Note: Casting to an array every time I use implode is not a solution, as I'd like this array-like object to work EXACTLY as an array, and  not have the code using it to have to know/care/cast)</p>