Page 1 of 1

Loop of tuesdays and saturdays

Posted: Sun Jan 04, 2009 1:08 pm
by xionhack
Hello. I want to make a loop that will display tuesday, saturday, saturday, saturday, tuesday, saturday, saturday, saturday... etc, but with their exact dates. Let's say this week 1/6/2009, 1/10/2009, 1/10/2009, 1/10/2009, 1/13/2009, 1/17/2009, 1/17/2009, 1/17/2009.... etc, how can i do that?! Thanks

Re: Loop of tuesdays and saturdays

Posted: Sun Jan 04, 2009 1:22 pm
by jaoudestudios
I dont know what your pattern is for...

Code: Select all

tuesday, saturday, saturday, saturday, tuesday, saturday, saturday, saturday... etc
But you could use something like this...

Code: Select all

$tomorrow  = mktime(0, 0, 0, date("m")  , date("d")+1, date("Y"));