Sr. PHP Programmer Question:
Download Questions PDF

How will you get the current date and time using PHP?


PHP's time() function gives you all the information that you need about the current date and time. It requires no arguments but returns an integer.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How to strip whitespace (or other characters) from the beginning and end of a string?How stop the execution of a php scrip?