How can we know the number of days between two given dates
using PHP?
Answer Posted / dheeraj
<?php
$date1=date('Y-m-d');
$date2="2007-09-15";
echo (round($diff=strtotime($date1)-strtotime($date2)))/86400;
?>
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the data types in php?
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
What changes I have to do in php.ini file for file uploading?
List types of array are available in php?
What are the main error types in php?
What is serialization in php?
How to send a cookie to the browser?
Is server side a session?
What is session and Cokkies . How it works . tell some thing about Session_id()
How to assigning a new character in a string using php?
What does the initials of php stand for?
What does explode do in php?
How to access a Static Member of a Class in PHP?
What is difference between static and constant in php?
Which cryptographic extension provide generation and verification of digital signatures?