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 |
Explain the different types of errors in php.
What is the difference between $message and $$message?
What is stdclass in php?
Why is php used?
Is python similar to php?
What does addslashes do in php?
How can we register the variables into a session?
What does explode do in php?
What is session in PHP. How to remove data from a session?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
What is a persistence cookie?
What is inheritance in php?