Câu 42: 200-550: Zend Certified PHP Engineer
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);
Nội dung câu hỏi
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);
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. MyObject should extend class Closure
- B. MyObject should implement interface Callable
- C. MyObject should implement method __call
- D. MyObject should implement method __invoke — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.