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

Answer Posted / shanmuga

echo date('s');

This function will give the seconds of the current time.

Is This Answer Correct ?    52 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php good for career?

560


How is session data stored?

503


Explain Type hinting in PHP?

571


How to write php function in html onclick?

531


Does php 7 support multiple inheritance?

516






How is csrf token generated?

516


How to create a session? How to set a value in session? How to remove data from a session?

518


Does php have future?

586


Where is php code written?

519


How failures in execution are handled with include() and require() functions?

595


In php how can you jump in to and out of "php mode"?

574


What is the difference between get and post in php?

515


What are examples of dependent variables?

544


How do I stop php artisan serve in windows?

506


How to move uploaded files to permanent directory?

538