Q. Which PHP interface must be implemented to make an object iterable?

  • (A) Iterable
  • (B) Iterator
  • (C) Traversable
  • (D) Generator
πŸ’¬ Discuss
βœ… Correct Answer: (B) Iterator
Explanation: Implementing Iterator allows foreach iteration.
Explanation by: Mr. Dubey
Implementing Iterator allows foreach iteration.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
38
Total Visits
πŸ“½οΈ
7 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate