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...

write code to find the date difference b/w two given date
using PHP not MYSQL function?

Answer Posted / vipul dalwala

$noofdays = ceil(((strtotime($endDate) - strtotime
($startDate)) / (60*60*24)))

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how would you declare a function that receives one parameter name hello?

926


What are the uses of explode() function?

995


/temp is a type of filesystem directory. State Whether True or False?

966


Are sessions stateless?

852


What is Apache's configuration file typically called?

1055


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

1003


What is env in laravel?

963


What was the old name of php?

1362


How are variables declared in php?

962


What is ci in php?

976


What is rest api in php?

903


What is c++ polymorphism?

912


Explain the ternary conditional operator in php?

1036


What is string and its function?

921


What is difference between static and constant in php?

941