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 convert one date format into another in php?
What is input sanitization in php?
How many keywords are there in php?
Which is better mysql or sql?
Explain what is the difference between session and cookie?
What are the main error types in php and how do they differ?
Tell me how can we determine whether a variable is set?
What are the new features available in php 7?
What is the difference between == and === in php?
How to get no. of rows using MYSQL function?
What are regular expressions in programming?
Explain what are psrs?
List data types in PHP?
How to read a file in binary mode?
Explain the ternary conditional operator in php?