Zend Certified PHP Engineer 200-550 Question # 48 Topic 5 Discussion

Zend Certified PHP Engineer 200-550 Question # 48 Topic 5 Discussion

200-550 Exam Topic 5 Question 48 Discussion:
Question #: 48
Topic #: 5

How should class MyObject be defined for the following code to work properly? Assume $array is an array and MyObject is a user-defined class.

$obj = new MyObject();

array_walk($array, $obj);


A.

MyObject should extend class Closure


B.

MyObject should implement interface Callable


C.

MyObject should implement method __call


D.

MyObject should implement method __invoke


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.