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 |
How do you execute a php script from the command line?
What is binary safe function in php?
what is the default session expire time in php? what is default file attachment size in mail in php?
How to get the DNS servers of a domain name?
Does wordpress still use php?
What are the different components used in php for formatting?
What is php resource type?
What is x+ mode in fopen() used for?
What is lamp in php?
How to use http headers inside php?
How do you debug php?
How to return a value back to the function caller?