0
有人可以幫助我理解此循環的邏輯。我是新來的PHP和從教程製作日曆。如果條件對我來說不清楚的話,這個邏輯。下面是代碼瞭解日曆的代碼邏輯PHP
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
解密最難行:
$calendar.= '<tr class="calendar-row">';
任何幫助,將不勝感激。
在哪一行以及哪一部分你不明白。 – C2486
第二個條件,難以解密。當這個嵌套條件成立時,我不明白會發生什麼。 – Seeker