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 pass variables by references?

1040


How can you execute php script from the command line?

1060


Which Scripting Engine PHP uses?

1251


What is strlen function in php?

1067


What is the difference between public, protected and private?

1006


How to remove values saved in the current session?

1098


What is env in laravel?

1076


Does php pass arrays by reference?

1178


How can I convert ereg expressions to preg in php?

1033


Difference between mysql_connect and mysql_pconnect?

1016


What is the difference between explode and split?

1182


What is prepare in php?

1059


what the new feature add in php 7.2?

1032


How to download and install php for windows?

1088


What is difference between get and post in php?

1239