How to find number of Mondays (or any particular day) in a month?

Posted 8 months ago by kshitizmittal

I want to find the number of a particular day let's say (Monday) in a particular month of an year.

structure of required function :-

function numberOfDays($dayName,$monthName,$year){
    .
    .
    .
    .
    return $numberOfDays;
}

Please help me

Please sign in or create an account to participate in this conversation.