<?php class Foo implements IteratorAggregate { public function getIterator() { return new ArrayIterator([]); }} function foo(iterable $bar) { var_dump($bar); } foo(new Foo());
You have javascript disabled. You will not be able to edit any code.