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

Which is better php praogramming or cad/cam scope wise and also salaray wise?

0 Answers  


Tell me how to create a session? How to set a value in session? How to remove data from a session?

0 Answers  


What is PHP?

8 Answers  


Tell me what does accessing a class via :: means?

0 Answers  


What are php loops?

0 Answers  






What is php session id?

0 Answers  


hi, i am new for php I want to know where to create & how to run phpscript programme in LAMP?

2 Answers  


What is namespaces in PHP?

0 Answers  


What is the difference between apache and tomcat?

0 Answers  


Which variable declarations within a class is invalid in php?

0 Answers  


Is php 5 still supported?

0 Answers  


Is there any function to find repeated value in an array? What is w2 standard

1 Answers  


Categories