Can you tell a way to know the number of days between the two given dates in PHP?

Posted by Prem Tiwari | Updated on

You can simply declare the two dates, and then use the strtotime function to subtract both the dates and find the differences between the days in seconds.

Consider the below example.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers