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 the difference between Split and Explode in PHP?

0 Answers   B-Ways TecnoSoft,


Why super () is used in java?

0 Answers  


What are the differences between include() and include_once () functions?

12 Answers  


How can we change the maximum size of the files to be uploaded?

0 Answers  


What is meant by urlencode and urldocode?

2 Answers  






Why do we use in php?

0 Answers  


How can we register the variables into a Session?

7 Answers   HCL, Star Computers, Trikon Networks,


Tell me what is the use of mysql_real_escape_string() function?

0 Answers  


What are the popular content management systems (cms) in php?

0 Answers  


What are the encryption functions in php?

0 Answers  


What is the capacity of mysql database?

0 Answers  


What is isset function in php?

0 Answers  


Categories