The date() function returns ___ representation of the current date and/or time.
Correct answer
B. String
12 views
B. String
12 views
The date() function returns a string — the current date and/or time formatted according to the format characters you pass, for example date("Y-m-d") gives something like "2026-11-11".
If you need a number instead, time() returns the Unix timestamp as an integer.
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.