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 are Routines?
delete session variable when close browser with out logout
What is split function in php?
How to close a session properly?
What is php how it works?
What are the methods of array in java?
Is php difficult to learn?
How to test if a variable is an array?
How to create a table using php?
If i make my selection in State Dropdown list, i would the City and ZipCode dropdown list to be automatically reupdated based on the State i select.(This to avoid the user select a City or Zipcode that does not correspond to the State previously selected.)
Do you know how to enable error reporting in php?
Tell me how to initiate a session in php?