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

Tell me how is the ternary conditional operator used in php?

0 Answers  


What is the goto statement useful for?

0 Answers  


Explain different sorting function in php?

0 Answers  


Is it more secure to use cookies to trfer session ids?

0 Answers  


Which parts of php are case sensitive?

0 Answers  


what type of images that the PHP version supports

4 Answers  


Name and explain five of the PHP error constants?

0 Answers  


How to select a database?

0 Answers  


How to open standard output as a file handle?

0 Answers  


what is the use of include() function when include_once() alone will enough?

1 Answers  


What are examples of independent and dependent variables?

0 Answers  


How to turn on the session support in php?

0 Answers  


Categories