Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

What is the purpose of date() function?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

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?