the following code gives first date of week for the given date range. how to get week number from the date??? thanks.
<?php
$start = $week = strtotime('2011-01-01');
$end = strtotime('2011-02-01');
while($week < $end) {
echo date('Y-m-d',$week), PHP_EOL;
//echo week num???
$week = strtotime("+1 week", $week);
}
?>