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

If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b? Can anyone explain how's the value of $$b=100

15 Answers   ABC, Asan, Indivar, Swistro Marketing Solutions,


How do I run php?

0 Answers  


Tell me how can we pass the variable through the navigation between the pages?

0 Answers  


What is the use of header() function in php?

0 Answers  


Which is better python or php?

0 Answers  


How to assigning a new character in a string?

0 Answers  


What is the scope of a variable defined in a function?

0 Answers  


How to remove all duplicate values in array in php?

0 Answers  


Why did you choose this particular career path?

0 Answers  


how to retrieve from database..... this format (PRMRMDU402). firstname= prabhu, lastname=kumar, city=madurai, pincode=624402.... i want first name first two letters and last name last two letters ... city first two letters ... pin code last three letters....

2 Answers  


Tell us what is the difference between session_unregister() and session_unset()?

0 Answers  


What is phpsessid?

0 Answers  


Categories