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

What is a php 5?

1059


What is faster?

1008


How do you compare strings in java?

915


Explain converting an object?

1013


Are objects passed by value or by reference?

973


What are the advantages of stored procedures?

990


Tell me what is the use of the function htmlentities?

932


What is the difference between characters  and #?

1035


How do you use end in python?

1025


What is the Pipe Symbol represented?

1084


What is difference between single quotes and double quotes in php?

896


Are php variables global?

1003


What is a query in php?

895


Is python better than php?

998


What are the method available in form submitting?

985