Possible Duplicate:
How to calculate the difference between two dates using PHP?
Q : How to get the day(s) of difference between 2 dates?
e.g
<?php
echo $date1 = strtotime(date('2012-10-11'));
echo "<br />";
echo $date2 = strtotime(date('2012-11-15'));
echo "<br />";
echo $result = $date2 - $date1;
?>
The $result should be 36 days. How to get the days?