Loop through all days of the month?

Discussion in 'PHP' started by LazyD, Apr 7, 2007.

  1. #1
    Im currently working on something similar to a calendar and im trying to figure out how I can loop through all days of a given month. I would like this to be as autonomous as possible, like I choose April and it automatically figures out how many days are in the month and loops through all of them and echo's something simple for each day..
     
    LazyD, Apr 7, 2007 IP
  2. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Nevermind - I found the solution...

    cal_days_in_month() is a live saver
     
    LazyD, Apr 7, 2007 IP