Question: how to calculate days between two dates using php?
Answer: $start = strtotime('2010-01-25'); $end = strtotime('2010-02-20'); $days_between = ceil(abs($end - $start) / 86400); Using ceil rounds the amount of days up to the next full day. Use floor instead if you want to get the amount of full days between those two dates.