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 the meaning of "enctype= multipart/form-data" ?

1054


can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????

1805


What are computer variables?

902


What is php mainly used for?

936


How to execute a php script from the command line?

1025


Is rent a variable cost?

903


What are the different opening and closing tags available in PHP?

928


What is the use of pear in php?

952


What is difference between rest api and restful api?

930


Is array empty php?

870


Write a hello world program using variable?

902


How does php work with apache?

992


What is php string function?

960


Is multiple inheritance supported in php?

966


How do you access a get requests url parameter with php?

971