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 can we check the value of a given variable is a number?

0 Answers  


What is a base url?

0 Answers  


Design a class that should always return a single object ?

3 Answers   NIIT,


What is a php namespace?

0 Answers  


what is interface in php? how it is use?

10 Answers   Infosys, PHP, Times, Torque Infotech, Wipro,


What are different types of Print Functions available in PHP?

0 Answers  


How to replace a substring in a given string?

0 Answers  


how to track no of users logged in?

0 Answers  


What is difference between print and echo in php?

0 Answers  


Tell us how can we display the output directly to the browser?

0 Answers  


How to replace a substring in a given string in php?

0 Answers  


Is age interval or ordinal?

0 Answers  


Categories