Calculate number of days between 2 dates in php

 $days = (strtotime("2005-11-20") - strtotime(date("Y-m-d"))) / (60 * 60 * 24);
Matt Tew