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

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

Given a DateTime object that is set to the first second of the year 2014, which of the following samples will correctly return a date in the format '2014-01-0100:00:01'?

Nội dung câu hỏi

Given a DateTime object that is set to the first second of the year 2014, which of the following samples will correctly return a date in the format '2014-01-0100:00:01'?

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. $datetime->format('%Y-%m-%d %h:%i:%s')
  2. B. $datetime->format('%Y-%m-%d %h:%i:%s', array('year', 'month', 'day', 'hour', 'minute', 'second'))
  3. C. $datetime->format('Y-m-d H:i:s') — đáp án hiện tại
  4. D. $date = date('Y-m-d H:i:s', $datetime);

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ề