How to get seconds from current date using date function ?
Answers were Sorted based on User's Feedback
Answer / rupa
date("h:i:s");//get current time
date(s);//get only seconds
Is This Answer Correct ? | 25 Yes | 2 No |
Answer / 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 |
How is it possible to parse a configuration file?
How many days will it take to learn php?
Can I run php without xampp?
How do you pass a variable by value in php?
Which are the best start and end tags to use?
Which php framework is in demand?
What is difference between require_once(), require(), include()?
What is properties of class?
Explain Magento's autoload functionality and how to instantiate classes? What is the process you take when theming a store? Talk about Magento collections and how you use them?
What does $_cookie mean?
How to split a string into array using php?
Write a program to get second highest number in an array using php?