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

Explain different sorting function in php?

0 Answers  


What is the purpose of destructor ?

2 Answers  


What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?

2 Answers  


!== represents what?

2 Answers  


how to select the multiple data in selection button

1 Answers   xasis technologies,


What is an associative array?

0 Answers  


How can you execute php script from the command line?

0 Answers  


How to write comment in php?

0 Answers  


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

0 Answers  


Where can I learn php?

0 Answers  


List some array functions in php?

0 Answers  


What changes I have to do in php.ini file for file uploading?

0 Answers  


Categories