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
What are the difference between array_keys() and array_key_exists() in php?
Why super () is used in java?
Why is php used for web development?
What is difference between ksort() and usort() functions.
What is php and its advantages?
What are getters and setters and why are they important?
How to define a function with any number of arguments?
In php how can you jump in to and out of "php mode"?
What language is similar to php?
What are the different loops in php?
What is polymorphism in oop php?
Is php pass by reference or value?
Php error constants and their descriptions
What can php do?
Is php the same as html?