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

Inside a php function, what param needs to be set in order to access a global variable?

0 Answers  


What are the special characters you need to escape in double-quoted stings?

0 Answers  


How we can retrieve the data in the result set of mysql using php?

0 Answers  


What is the difference between static and dynamic websites?

0 Answers  


Which is the best web server?

0 Answers  






What is the correct php command to use to catch any error messages within the code?

0 Answers  


What is difference between required and include in php?

0 Answers  


What are php applications?

0 Answers  


how retrive the video file in php using video tag

0 Answers  


Does php need to be installed?

0 Answers  


Which operator is used to concatenate two strings in PHP?

0 Answers  


What are magic constants in php?

0 Answers  


Categories