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 to use http headers inside php?

0 Answers  


How can I get the only name of the current executing file?

6 Answers  


What are the main error types in php?

0 Answers  


What is php crud api?

0 Answers  


Explain me what is the goto statement useful for?

0 Answers  


Is gender a dependent variable?

0 Answers  


•How to upload files using PHP?

3 Answers  


What is ci framework in php?

0 Answers  


armstrong number by using php while number is given by the keyboard.?

0 Answers  


What is the use of array_count_values() in php?

0 Answers  


How to get ip address of clients machine?

0 Answers  


What is asort php?

0 Answers  


Categories