title: How to count days between two dates in PHP?
body: <p>If I have a couple of strings <code>$startDate</code> and <code>$endDate</code> which are set to (for instance) <code>"2011/07/01"</code> and <code>"2011/07/17"</code> (meaning 1 July 2011 and 17 July 2011). How would I count the days from start date to end date? In the example given, it would be 17 days.</p>