CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. MyObject should extend class Closure
  2. B. MyObject should implement interface Callable
  3. C. MyObject should implement method __call
  4. 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.

Câu hỏi liền kề