Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

How can we get second of the current time using date function?

PHP Interview Question
PHP Interview Question

Answers:

Answer #1
$second = date("s");

Answer #2
$second = date("i")

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
What is the use of friend function in PHP?How can I make a script that can be bilingual (supports English, German)?