<?php function gen1() { yield 1; yield 2; yield 3; } function wat($iter) { var_dump($iter->valid()); } wat(gen1()); wat([4, 5, 6]);
You have javascript disabled. You will not be able to edit any code.