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

Câu 62: 200-550: Zend Certified PHP Engineer

Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates?$date1 = new DateTime('2014-02-03');$date2 = new DateTime('2014-03-02');

Nội dung câu hỏi

Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates?$date1 = new DateTime('2014-02-03');$date2 = new DateTime('2014-03-02');

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. $date2 > $date1 — đáp án hiện tại
  2. B. $date2 < $date1
  3. C. $date1->diff($date2) < 0
  4. D. $date1->diff($date2) > 0

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ề