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 do you explain independent and dependent variables?
Write a program in php to check whether a number is prime or not?
How can you insert javascript in php code?
how set session expire time in php?
How to access standard error stream in PHP?
What is constructors and destructors?
Can we embedded directly PHP code into XHTML document? State Whether True or False?
Is php a programming language?
What is Joomla?
How can we display the output directly to the browser?
Can I learn php in a month?
how to use http headers inside php? Write the statement through which it can be added?