Saturday, 31 March 2012

Q: How can get days between two date in php


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

No comments:

Post a Comment