问问题
1972 次
1 回答
3
<select>
<?php
for ($i = 0; $i < 4; $i++) {
echo '<option value="' . date("Y-m-d", strtotime("this sunday - $i week")) . '">' . date("M j", strtotime("this sunday - $i week")) . " - " . date("M j", strtotime("this saturday - $i week")) .'</option>';
}
?>
</select>
于 2013-02-24T17:23:51.873 回答