which function used to get the number of days between two
given dates in php
Answer / silambu_irtt
<?php
$days = (strtotime("2005-11-26") - strtotime("2005-11-20"))
/ (60 * 60 * 24);
print $days;
?>
This code print number of days between two dates
| Is This Answer Correct ? | 12 Yes | 1 No |
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
What is the scope of a variable defined in a function?
Why many companies are switching their current business language to php?
Does php need html?
How to reset/destroy a cookie in php?
Tell me which programming language does php resemble to?
What is symfony php?
How to delete file in php?
How can you insert javascript in php code?
Why triggers are used in mysql?
how many types of error in PHP.
What does namespace mean in php?