Sr. PHP Programmer Question:

How to find current date and time?

Tweet Share WhatsApp

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 PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How will you add a constructor function to a PHP class?What is the purpose of date() function?