1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which one of the following format parameter can be used to…

Added 23 Jan 2024

Which one of the following format parameter can be used to identify timezone in PHP?

  1. T
  2. N
  3. E Correct answer
  4. I

Correct answer

C. E

11 views

MCQSEXAM

Explanation

The format character e returns the timezone identifier, such as Asia/Karachi or UTC, when used with date() or DateTime::format().

Related characters are easy to mix up: T gives the timezone abbreviation (PKT, EST), I shows whether daylight saving time is in effect, and N is the ISO day of the week.

For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs