Encontre esta funcion, prueba a ver si te sirve:
Código PHP:
<?php
function dateDiff($start, $end) {
$start_ts = strtotime($start);
$end_ts = strtotime($end);
$diff = $end_ts - $start_ts;
return round($diff / 86400);
}
echo dateDiff("2006-04-05", "2006-04-01");
?>
Sino por aqui tienes mas ejemplos:
http://www.google.es/#hl=es&source=h...d373de720a5339