0
今週現在毎週出力しようとしている。私は以下のコードを使用していますが、月曜日から日曜日までは使用できません。strtotimeを使用してMon-Sunを使用していないすべての週を出力するが、Sun-Sat PHPの場合
for ($i = 0; $i < date("W"); $i++)
{
echo '<option value="' . date("W", strtotime("this monday - $i week")) . '">' . date("M j Y", strtotime("this sunday - $i week")) . " - " . date("M j Y", strtotime("this saturday - $i week")) .'</option>';
}
あなたは月曜日〜Sunday'を使用しているときに、 'それが動作しないことにより、どのような意味ですか定義してくださいことはできますか? – Fotis