2

Hi I need to create a php loop where I have "2015-05-22" as week1 then weeks 2, 3 and 4 are all created automatically from this date. I know I can get the week number by using which I may be better off using but I still need that to be broken down into 4 weekly segments:

$startdate = "2015-05-22";
echo "Week: ".date("W", strtotime($startdate));

Can someone point me in the right direction?

Ali
  • 2,993
  • 3
  • 19
  • 42

0 Answers0