Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How do you explain independent and dependent variables?

0 Answers  


Write a program in php to check whether a number is prime or not?

0 Answers  


How can you insert javascript in php code?

13 Answers   TCS,


how set session expire time in php?

4 Answers  


How to access standard error stream in PHP?

0 Answers  


What is constructors and destructors?

0 Answers  


Can we embedded directly PHP code into XHTML document? State Whether True or False?

0 Answers  


Is php a programming language?

0 Answers  


What is Joomla?

5 Answers   T3 Softwares, Zend,


How can we display the output directly to the browser?

0 Answers  


Can I learn php in a month?

0 Answers  


how to use http headers inside php? Write the statement through which it can be added?

0 Answers  


Categories