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




Answers were Sorted based on User's Feedback



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

Answer / shanmuga

echo date('s');

This function will give the seconds of the current time.

Is This Answer Correct ?    52 Yes 9 No

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

Answer / rahul

$second = date('s');



echo $second;

Is This Answer Correct ?    3 Yes 4 No

Post New Answer




More PHP Interview Questions

What is meant by PEAR in PHP?

0 Answers  


!== represents what?

2 Answers  


Write the statements that are used to connect php with mysql

0 Answers  


How to uploaded files to a table?

0 Answers  


How to upload a file (may be a .txt or a .doc file) from a php script/file?

1 Answers  






What is pdo classes?

0 Answers  


how to select single row from table and insert into same table as a new record by using a single sql query.

2 Answers  


Can we use include (?abc.PHP?) two times in a PHP page ?makeit.PHP??

5 Answers  


How to create an array from php string?

0 Answers  


How do I check if a given variable is empty?

0 Answers  


How to declare an array in php?

0 Answers  


What is the meaning of a persistent cookie?

0 Answers  






Categories