Calculate number of days between 2 dates in php

Posted . Visible to the public.
 $days = (strtotime("2005-11-20") - strtotime(date("Y-m-d"))) / (60 * 60 * 24);
Matt Tew
Last edit
Tags
Posted by Matt Tew to Matt Tew's deck (2012-03-22 20:43)