In PHP 7.1, which of the following is the correct syntax for a function with iterable generator return type?
Correct Answer:
function example(): iterable {
yield 1;
yield 2;
yield 3;
}
?>
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions