which function used to get the number of days between two
given dates in php
Answer Posted / silambu_irtt
<?php
$days = (strtotime("2005-11-26") - strtotime("2005-11-20"))
/ (60 * 60 * 24);
print $days;
?>
This code print number of days between two dates
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
Tell me how do I escape data before storing it into the database?
What is helper function?
What is the use of php and mysql?
What is a query in a database?
What are php errors?
What beforeFilter() is used?
What is the difference between characters 23 and x23?
What is the timeout period on session values?
What is dao in php?
What is the use of htmlentities in php?
Why and where do we use htaccess?
Is key in array php?
What are php magic methods/functions?
Does php support inheritance?
What is a PHP accelerator?