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 |
Write a php code which could be used to generate random numbers between 1 - 100 and display them on the screen.
List the different types of print functions available in php?
what is the default method of form in php?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
Can I run php without xampp?
How to copy a file?
Php says that an array is an ordered map. But how the values are ordered in an array?
Tell me what is the difference between the functions strstr() and stristr()?
How do you clear environment variables?
How to count a number of words in a string in php?
What are the three classes of errors that can occur in php?
How can we set and destroy the cookie in php?