Secondo me ti conviene usare le funzioni native di php comunque:

http://sandbox.onlinephpfunctions.co...331b14812a2d16
Codice PHP:
$start = new DateTime("2014-03-05");
$end = new DateTime("2014-03-08");


$interval $start->diff($end);
$nights $interval->format("%a");


echo 
$nights