Solucion
Código PHP:
<?php
setlocale(LC_TIME, "es_ES");
function WeekToDate ($week, $year)
{
$Jan1 = mktime (1, 1, 1, 1, 1, $year);
$iYearFirstWeekNum = (int) strftime("%W",mktime (1, 1, 1, 1, 1, $year));
if ($iYearFirstWeekNum == 1)
{
$week = $week - 1;
}
$weekdayJan1 = date ('w', $Jan1);
$FirstMonday = strtotime(((4-$weekdayJan1)%7-3) . ' days', $Jan1);
$CurrentMondayTS = strtotime(($week) . ' weeks', $FirstMonday);
return ($CurrentMondayTS);
}
$iYear = '2010';
for ($i = 1; $i <= 52; $i++) {
$sStartTS = WeekToDate ($i, $iYear);
$sLunes = date ("Y-m-d", $sStartTS);
list($year,$mon,$day) = explode('-',$sLunes);
$sDomingo = date('Y-m-d',mktime(0,0,0,$mon,$day+6,$year));
echo 'Semana: '.$i.' de '.$sLunes.' al '.$sDomingo;
echo '<br>';
}
?>