php - How to count number of weeks and days of week any month - Get link Facebook X Pinterest Email Other Apps How to count week and week days in any month OK, I think I found you: $ Days = cal_days_in_month (CAL_GREGORIAN, 1, 2011); $ Week_days = date ("n", mktm (0,0,0,1,1,2011)); $ Weeks = seat (($ day + $ week -days) / 7); Echo every week; Comments
Comments
Post a Comment