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 |
Whats the difference between include() and require()?
What is the difference between echo print and print_r in php?
Should I learn php before wordpress?
Is php still relevant 2019?
How to replace a text in a string with another text in php?
What are the 5 types of data?
Write a PHP code to print following number pattern: 123 456 789
Will php die?
What does the expression exception::__tostring means?
What is in a cookie?
Explain mysql_error().
Explain what are psrs?