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 Session and Cookie?

0 Answers  


for image work which library?

0 Answers  


Which is better python or php?

0 Answers  


What is a collection in php?

0 Answers  


What is the difference between explode () and split () functions in php?

0 Answers  






What is array and function?

0 Answers  


This question is regarding version control. If two developers are committing the same php file at same time what will happen ? What error it will show (if any) ?

2 Answers   TCS,


How to delete cookie files on your computer?

0 Answers  


Can we run php on tomcat server?

0 Answers  


What is phpsessid?

0 Answers  


How can php and javascript interact?

0 Answers  


What is data type in php?

0 Answers  


Categories