在包含星期的字符串之间获取正确的日期

So I've got this string '5/25/15-5/29/15', and a page that loads a table with monday-friday. I would ideally like to put each day in the table.

For example:

Monday - Tuesday - Wednesday - Thursday - Friday
 5/25  -  5/26   -   5/27    -   5/28   -  5/29

How can I accomplish this in php/html? Or javascript etc.

update: I need this to be universal to any date string that I give it, each date will be the same format. But it has to work for the string '6/29/15-7/3/15' as well.

edit: Also, not sure why I got downvotes on this. Maybe the answer is more clear than I can see. Sorry about that.

In the comment you say you need to pull the dates from the string, using the DateTime class and some of its methods will help you do that (In $string you can put any range.)

<?php
$string = '5/25/15-5/29/15';
$datesExpl = explode('-', $string);

$date1 = new DateTime($datesExpl[0]);
$date2 = new DateTime($datesExpl[1]);
$interval = $date1->diff($date2);

echo $date1->format('d-m-Y')."
"; 
for($i = 1; $i <= $interval->days; $i++){
    $nDate = $date1->modify('+1 day');
    echo $nDate->format('d-m-Y')."
";
}

/* 
RETURNS:
25-05-2015
26-05-2015
27-05-2015
28-05-2015
29-05-2015 
*/