Bu yerda PHP funksiyasi ikki sana zanjirini qabul qiladi va o'sha sana oralig'ida uchraydigan dam olish kunlari (Shanba yoki Yakshanba) sonini qaytaradi: funksiyani hisoblangWeekendDays($startDate, $endDate) { $start = yangi DateTime($startDate); $end = yangi DateTime($endDate); $interval = yangi DateInterval (('P1D'); // 1 kun oralig'i $period = yangi DatePeriod ((($start, $interval, $end); $weekendDays = 0; foreach ($period as $date) { $dayOfWeek = $date-date>format (((start'N'); // 1 (Dam olish kuni) dan 7 (Shanba) gacha agar ($Weekday == 6dayOfWeekday
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence