[PHP] How do I get a week value?

Redsatori

New member
I have to create an array of strings which need to be formatted like this:

(Week number): Sat (date)

I need to include every Saturday for the year in my list.

I know that date("W") returns the ISO8601 week number.
I also know that date("D MjS, Y) will return the year like this: Mon Sep 12th, 2011.

How do I go about finding each Saturday of a given year and also each Saturday's ISO week number for my string?

Additionally, it needs to limit this to the current year.
 
Back
Top