How can we get second of the current time using date function?

Answer Posted / rahul

$second = date('s');



echo $second;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between action hook and filter hook?

496


How to define a user function?

574


Can I use php in visual studio?

535


Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

1709


Write a statement to show the joining of multiple comparisons in php?

536






What is polymorphism in php?

513


Where to put php files in apache server?

507


What is the difference between htmlentities() and htmlspecialchars()?

545


Does exist in php?

541


How to concatenate two strings in php?

540


Does php use html?

479


Explain Creating and Naming an Array?

588


What is variable function php?

556


Which function is used to read a file removing the html and php tags in it upwork?

495


What is the purpose of a query?

511