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

How to return a value back to the function caller?

1038


Swap two variables value without using third variable in php ?

1059


Is null function in php?

1025


Explain the difference between urlencode and urldecode?

1057


What is difference between require_once(), require(), include()?

1020


What is difference between required and require_once in php?

1086


What is the use of dual table in mysql?

975


What are regular expressions in programming?

911


What is a lambda function in php?

1116


How to access standard error stream in PHP?

1132


How do you execute a php script from the command line?

1060


What is faster?

1015


Php code to find whether a number armstrong or not?

967


What is Type hinting in PHP?

1152


Where sessions stored in PHP?

992