1.

The date() function returns ___ representation of the current date and/or time.(a) Integer(b) String(c) Boolean(d) FloatThis question was posed to me during an interview for a job.The above asked question is from Date and Timestamp in portion File and Session Handling in PHP of PHP

Answer»

The correct ANSWER is (b) String

To ELABORATE: The function date() is used to format a local date and time, and it will return the formatted date string. The SYNTAX of this function is string date(string format [, INT timestamp]).



Discussion

No Comment Found

Related InterviewSolutions