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
How to return a value back to the function caller?
Swap two variables value without using third variable in php ?
Is null function in php?
Explain the difference between urlencode and urldecode?
What is difference between require_once(), require(), include()?
What is difference between required and require_once in php?
What is the use of dual table in mysql?
What are regular expressions in programming?
What is a lambda function in php?
How to access standard error stream in PHP?
How do you execute a php script from the command line?
What is faster?
Php code to find whether a number armstrong or not?
What is Type hinting in PHP?
Where sessions stored in PHP?