which function used to get the number of days between two
given dates in php
Answer / 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 |
Why do we use namespace in php?
How do I repair phpmyadmin?
What are the rules in creating php variable?
where do we use htaccess?
What is serialization / object serialization ?
What is the apache?
What is "print" in php?
Who developed php?
What are php errors?
Could we start a variable with number like $4name?
How to convert strings to upper or lower cases?
Can we run php on tomcat server?