Sr. PHP Programmer Question:
Download Questions PDF

What is the purpose of date() function?

Answer:

The date() function returns a formatted string representing a date. You can exercise an enormous amount of control over the format that date() returns with a string argument that you must pass to it.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How to find current date and time?What is the value of "$day" in the below code?