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
What is a php 5?
What is faster?
How do you compare strings in java?
Explain converting an object?
Are objects passed by value or by reference?
What are the advantages of stored procedures?
Tell me what is the use of the function htmlentities?
What is the difference between characters and #?
How do you use end in python?
What is the Pipe Symbol represented?
What is difference between single quotes and double quotes in php?
Are php variables global?
What is a query in php?
Is python better than php?
What are the method available in form submitting?