The scenario I have here is that, I need to select a Year and Month. And I need to show the Weeks in that currently selected Month. Let me explain it here ... 2017 -> Oct -> Week N ( this should be the Week of year . Ex this week is #40 for 2017.) So I need to list ...
Use this:
date("W");
W
as a parameter for date
function will return week number at the current year.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.