adspace


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

List some features of php that are deprecated in php7?

1021


Explain me is it possible to destroy a cookie?

1025


What is difference between static and final in php?

1107


Tell me what kind of things have you done on the social side?

1063


What is the current stable version of php?

1122


What is the difference between htmlentities() and htmlspecialchars()?

1090


sort term descripttion form, report and uery

2254


Name and explain five of the PHP error constants?

1033


How to calculate the difference between two dates using php?

1142


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1987


What is the current stable version of php? What advance thing in php7?

1094


What is trait in php?

1065


What sized websites have you worked on in the past?

1084


Which variable declarations within a class is invalid in php?

1047


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2175