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
How can I convert ereg expressions to preg in php?
What is in a cookie?
How to assigning a new character in a string?
What are the two most common ways to start and finish a php block of code?
How can php and javascript interact?
What is the purpose of pear in php?
How to upload file in php?
What is the method to register a variable into a session?
Does php have multiple inheritance?
What is difference between md5 and SHA256?
What is the differences between $a != $B and $a !== $B?
How to remove html tags from data in php?
What is return in php function?
How do I expire a php session after 30 minutes?
Which function is used to read a single character from a file in PHP.