Skip to content

Instantly share code, notes, and snippets.

@shrikeh
Created March 28, 2014 10:05
Show Gist options
  • Save shrikeh/9829330 to your computer and use it in GitHub Desktop.
Save shrikeh/9829330 to your computer and use it in GitHub Desktop.
<?php
class Foo extends \FilterIterator
{
public function accept()
{
return true;
}
}
$it = new \ArrayIterator(array('foo', 'bar', 'baz'));
$foo = new Foo($it);
var_dump($it->current());
var_dump($foo->current());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment