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



which function used to get the number of days between two given dates in php..

Answer / 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

More PHP Interview Questions

Explain the different types of errors in php.

0 Answers  


What is the difference between $message and $$message?

2 Answers  


What is stdclass in php?

0 Answers  


Why is php used?

0 Answers  


Is python similar to php?

0 Answers  


What does addslashes do in php?

0 Answers  


How can we register the variables into a session?

1 Answers  


What does explode do in php?

0 Answers  


What is session in PHP. How to remove data from a session?

0 Answers  


What is the best practice for running mysql queries in php? Consider the risk of sql injection.

0 Answers  


What is a persistence cookie?

0 Answers  


What is inheritance in php?

0 Answers  


Categories