<?php function gen() { foreach(range(0, 10) as $i) yield $i; } $e = gen(); var_dump(iterator_count($e)); var_dump(iterator_count($e));
You have javascript disabled. You will not be able to edit any code.