how many ways we get current date in php
Answers were Sorted based on User's Feedback
Answer / swapna
$date_time = date('Y-m-d H:i:s'); use this one you can get
current date.
| Is This Answer Correct ? | 88 Yes | 28 No |
Answer / mahesh
$date = getdate()
Here $date prints as an Array.with current date and Time
| Is This Answer Correct ? | 24 Yes | 25 No |
Answer / tasimkhan
$date = date('d-M-Y H:i:s', strtotime(time(0))
| Is This Answer Correct ? | 4 Yes | 7 No |
What is the difference between static and dynamic websites?
Explain how to run the interactive php shell from the command line interface?
What are the security measures we have to take for our site not to hack by others?
What is the meaning of a final class and a final method?
Explain do you use composer? If yes, what benefits have you found in it?
What is data abstraction in php?
what is PDO?
What is baseurl?
How do you define a constant in php?
What is php and its uses?
What is inheritance in php with example?
How to convert any type of video formate in flv formate in php can any buddy give me coding.