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

Which cryptographic extension provide generation and verification of digital signatures?

0 Answers  


Explain about the connective abilities of the PHP?

0 Answers  


I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?

0 Answers  


How to execute a php script from the command line?

0 Answers  


What is difference between required and require_once in php?

0 Answers  


What are the advantages of indexes?

0 Answers  


What is the purpose of constant() function?

0 Answers  


How to enable cURL in PHP?

0 Answers   HCL,


List some array functions in php?

0 Answers  


Explain about PHP cookies?

0 Answers  


What are the correct and the most two common way to start and finish a PHP block of code?

0 Answers  


just explain MYSql ISAM and InnoDB functions. and what is the diffrent between both. and which is the better in both.

2 Answers  


Categories