nerdexam
National_Instruments

200-500 · Question #244

Consider the following script: <?php echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1995)); ?> What will be the output of the above script?

The correct answer is D. Jan-01-1996. See the full explanation below for the reasoning.

Question

Consider the following script:

<?php echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1995)); ?> What will be the output of the above script?

Options

  • AJan-01-1995
  • BFatal error
  • CDate out of range error
  • DJan-01-1996

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    6% (2)
  • C
    14% (5)
  • D
    75% (27)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice