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

Can we run php in apache tomcat?

526


Why do we use polymorphism in php?

549


What does csrf token mismatch mean?

631


How to access a specific character in a string?

504


Which character is used to match exactly one character?

556






Explain mail function in PHP with syntax?

567


How to protect special characters in query string?

537


How to get elements in reverse order of an array in php?

573


What is strlen function in php?

524


How does php serialize work?

524


Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

1520


What types of MYSQL function available for affecting columns

558


How does api connect to database?

564


Which framework is best for php development?

498


Is php still in demand?

557