How to get seconds from current date using date function ?

Answer Posted / rupa

date("h:i:s");//get current time
date(s);//get only seconds

Is This Answer Correct ?    25 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the $_ server php_self variable?

481


What is the most convenient hashing method to be used to hash passwords?

497


How do I find environment variables?

503


How to get ip address of a server in php?

541


What is the difference between echo print and print_r in php?

516






What is difference between action hook and filter hook?

489


How do you clear environment variables?

534


Explain the difference b/w static and dynamic websites?

492


What websites use php?

513


How to write a program to make chess?

540


Tell me how can we change the maximum size of the files to be uploaded?

542


How can we encrypt the password using php?

544


What are the uses of explode() function?

553


What are the types of variables in php?

533


Is null empty php?

525