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 the meaning of "enctype= multipart/form-data" ?
can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????
What are computer variables?
What is php mainly used for?
How to execute a php script from the command line?
Is rent a variable cost?
What are the different opening and closing tags available in PHP?
What is the use of pear in php?
What is difference between rest api and restful api?
Is array empty php?
Write a hello world program using variable?
How does php work with apache?
What is php string function?
Is multiple inheritance supported in php?
How do you access a get requests url parameter with php?