How to get seconds from current date using date function ?

Answer Posted / ghan shyam

by using date function like :
date("s",time());

or
date("s",strtotime("$dt")); for given date in $dt

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the difference between array_keys() and array_key_exists() in php?

736


Why super () is used in java?

702


Why is php used for web development?

706


What is difference between ksort() and usort() functions.

677


What is php and its advantages?

684


What are getters and setters and why are they important?

728


How to define a function with any number of arguments?

738


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

740


What language is similar to php?

740


What are the different loops in php?

731


What is polymorphism in oop php?

709


Is php pass by reference or value?

735


Php error constants and their descriptions

801


What can php do?

733


Is php the same as html?

690