How can we know the number of days between two given dates
using PHP?
Answer Posted / ash
$date1 = date('Y-m-d');
$date2 = "2007-07-05";
$days = (strtotime($date1) - strtotime($date2)) / (60 * 60
* 24);
echo " No of $days difference";
Is This Answer Correct ? | 25 Yes | 4 No |
Post New Answer View All Answers
How is session data stored?
What is lamp in php?
How to reset/destroy a cookie?
Tell us how can we access the data sent through the url with the post method?
What language is php based on?
Explain the installation of PHP on UNIX systems?
Explain me is it possible to destroy a cookie?
What is the meaning of php?
Is salary fixed or variable cost?
How to declare an array in php?
What is binary safe function in php?
What are the design patterns in php?
What is needed to be able to use image function?
Tell me what library is used for pdf in php?
What is the functionality of the functions strstr() and stristr()?