which function used to get the number of days between two
given dates in php



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

Post New Answer

More PHP Interview Questions

What is super () python?

0 Answers  


Write a regular expression to get the value xxx from the string 'xxx@yyy.com'

9 Answers  


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


Explain how can php and javascript interact?

0 Answers  


Do you know what is the differences between $a != $B and $a !== $B?

0 Answers  






How to check curl is enabled or not in PHP

0 Answers  


Why we use get in php?

0 Answers  


What is the purpose of pear in php?

0 Answers  


how to select the multiple data in selection button

1 Answers   xasis technologies,


What is the use of imagetypes() method?

0 Answers  


What is encapsulation in php with example?

0 Answers  


Explain what is meant by pear in php?

0 Answers  


Categories