In PHP 7.1, which of the following statements is/are correct about generators?
i) With generators, less code is required to be written as compared to implementing an iterator class.
ii) The same generator can be iterated over multiple times.
Correct Answer:
Only option i).
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions