This is what i tried:
$date1 = date_create('2015-06-03');
$date2 = date_create('2015-06-11');
$diff = $date2->diff($date1)->format("%a");
echo $diff;
This returns me the number: 8 . I want to get the number of days between two dates, excluding Saturdays and Sundays and including the start date and end date. How can I do that? So in my case the result should be 7.