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 overloading in php?

0 Answers  


CWD is a type of shell variable. State Whether True or False?

0 Answers  


why we used type-pool SLIS in ALVs? how many types of windows in scripts?

0 Answers   IBM,


What are the advantages of stored procedures, triggers, indexes in php?

0 Answers  


What software is required for php?

0 Answers  






How many escape sequences are recognized in double-quoted strings in php?

0 Answers  


What is meant by session in php?

0 Answers  


Explain me what is the use of header() function in php?

0 Answers  


Can we learn php without html?

0 Answers  


Can you define an argument as a reference type?

0 Answers  


What is php call function?

0 Answers  


What are the different types of PHP arrays?

0 Answers  


Categories