Zend Certified PHP Engineer 200-550 Question # 22 Topic 3 Discussion

Zend Certified PHP Engineer 200-550 Question # 22 Topic 3 Discussion

200-550 Exam Topic 3 Question 22 Discussion:
Question #: 22
Topic #: 3

Which interfaces could class C implement in order to allow each statement in the following code to work? (Choose 2)

$obj = new C();

foreach ($obj as $x => $y) {

echo $x, $y;

}


A.

Iterator


B.

ArrayAccess


C.

IteratorAggregate


D.

ArrayObject


Get Premium 200-550 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.