How can we know the number of days between two given dates
using PHP?

Answer Posted / richa

Something we must know about strtotime

(try putting up a date grater than 30 years)

yes it will give an unexpected output, because it uses, unix
timestamp, and thus doesnt treat a date greater than 30 yrs,
as a correct value.

Amazing but true

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mvc php?

529


Is php better than java?

551


What is cakephp framework?

541


How to write php function in html onclick?

533


Do you know how to enable error reporting in php?

500






Are parent constructors called implicitly inside a class constructor?

524


How to execute a function in php?

467


Is php still in demand?

557


Write a program in php to reverse a number?

550


How do I display php errors?

524


What is php default argument?

547


How to read a file in php?

531


Code to upload a file in PHP?

563


How can you execute php script from the command line?

549


Does https prevent csrf?

523