Php Objective Questions with Answers for written test exams 30

Question 30
Which of the following sentences are incorrect?

A. date() returns the current UNIX datestamp.

B. date() returns a formatted date string.

C. date() requires a time stamp to be passed to it.

D. date() returns a date array.

Answers 30


The correct answers are A, C, and D. date() takes a format string and an optional

time stamp and produces a formatted date string. If a UNIX time stamp is not

passed into date(), it will use the current time.

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---