- date_diff: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date1 = date('d-m-Y',strtotime('2014-06-27'));
$date2 = date('d-m-Y',strtotime('2014-07-27'));
print_r(date_diff($date2, $date1));