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

Why do we use namespace in php?

0 Answers  


How do I repair phpmyadmin?

0 Answers  


What are the rules in creating php variable?

0 Answers  


where do we use htaccess?

0 Answers  


What is serialization / object serialization ?

2 Answers  






What is the apache?

0 Answers  


What is "print" in php?

0 Answers  


Who developed php?

0 Answers  


What are php errors?

0 Answers  


Could we start a variable with number like $4name?

0 Answers  


How to convert strings to upper or lower cases?

0 Answers  


Can we run php on tomcat server?

0 Answers  


Categories