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 |
Tell me how is the ternary conditional operator used in php?
What is the goto statement useful for?
Explain different sorting function in php?
Is it more secure to use cookies to trfer session ids?
Which parts of php are case sensitive?
what type of images that the PHP version supports
Name and explain five of the PHP error constants?
How to select a database?
How to open standard output as a file handle?
what is the use of include() function when include_once() alone will enough?
What are examples of independent and dependent variables?
How to turn on the session support in php?