A

Admin • 825.56K Points
Coach

Q. Which PHP interface must be implemented to use foreach with objects?

  • (A) Iterator
  • (B) Iterable
  • (C) Traversable
  • (D) ArrayAccess
  • Correct Answer - Option(C)
  • Views: 2
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
Traversable allows object iteration.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.