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

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