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
How to take a substring from a given string?
Does php have a future?
What is the difference between php4 and php5?
Can I write php code in html file?
What is laracast?
How to remove blank spaces from the string?
How to run the interactive php shell from the command line interface?
Is php closing tag necessary?
Does php need a closing tag?
How should a model be structured in mvc?
Differentiate between require and include?
Who is the father or inventor of php?
Which escape sequences can be used in single quoted strings in php?
What is the scope of a variable defined outside a function?
Which is a perfect example of runtime polymorphism?