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 can we check the value of a given variable is a number?
What is a base url?
Design a class that should always return a single object ?
What is a php namespace?
what is interface in php? how it is use?
10 Answers Infosys, PHP, Times, Torque Infotech, Wipro,
What are different types of Print Functions available in PHP?
How to replace a substring in a given string?
how to track no of users logged in?
What is difference between print and echo in php?
Tell us how can we display the output directly to the browser?
How to replace a substring in a given string in php?
Is age interval or ordinal?