Sr. PHP Programmer Question:
Download Job Interview Questions and Answers PDF
How to find current date and time?
Answer:
The date() function provides you with a means of retrieving the current date and time, applying the format integer parameters indicated in your script to the timestamp provided or the current local time if no timestamp is given. In simplified terms, passing a time parameter is optional - if you don't, the current timestamp will be used.
Download Senior PHP Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
How will you add a constructor function to a PHP class? | What is the purpose of date() function? |