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

Explain what does the unset() function means?

578


Define urlencode() and urldecode() used in php?

586


What PHP stands for?

570


What does php exit do?

532


What is session data?

540






What is the difference between indexed and associative array?

506


What are the advantages of indexes in php?

569


Does php have multiple inheritance?

513


What is the difference between associative array and indexed array?

512


What is new keyword in php?

538


Explain the installation of PHP on UNIX systems?

551


How to remove an empty directory?

582


What is composer install?

595


When to use single quotes, double quotes, and backticks?

531


What is namespaces in PHP?

552