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

How to get complete current page url in php?

565


Explain me what is the goto statement useful for?

485


What beforeFilter() is used?

659


What is the use of imagetypes() method?

543


What's the best method for sanitizing user input with php?

495






What is html used for?

561


What are the different opening and closing tags available in PHP?

583


How can you send http header to the client in php?

510


Is key exist in array php?

545


What is die in php?

565


Tell me what does the scope of variables means?

539


How to take a substring from a given string?

541


Tell me how is the ternary conditional operator used in php?

580


What would occur if a fatal error was thrown in your php program?

549


How php statement is different from php script?

544