how can i count sunday in a particular month on present year

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dineshbhongale
    New Member
    • May 2013
    • 1

    how can i count sunday in a particular month on present year

    $num = cal_days_in_mon th(CAL_GREGORIA N,$month,$year) ; //31
    echo "$num"; //31 days;;

    but i can find sunday in these 31 days
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    I will give you a hint,

    You can get the day for a particular date
    Code:
    $dayofweek=date("w", mktime(0, 0, 0, 7, 1, 2000));
    try the rest

    Comment

    Working...