php - How to count number of weeks and days of week any month -


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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -