PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Can anyone share a snippet of code that, given a date range like
01/19/2006 - 02/19/2006, will return the number of sundays
(or mondays, etc) within that range?
you could try to think of an algorithm that finds the first sunday, and then move 7 days further untill you've reached the end date... In case of any problems, let us know...