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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how do I escape data before storing it into the database?

994


What is helper function?

889


What is the use of php and mysql?

972


What is a query in a database?

976


What are php errors?

910


What beforeFilter() is used?

1063


What is the difference between characters 23 and x23?

960


What is the timeout period on session values?

1038


What is dao in php?

930


What is the use of htmlentities in php?

923


Why and where do we use htaccess?

983


Is key in array php?

956


What are php magic methods/functions?

961


Does php support inheritance?

885


What is a PHP accelerator?

989