I have two dates like
$date1 ="2016-05-01";
$date2 ="2016-05-31";
how to get saturday and sunday count like between range is 9
Sorry, but we don't do your homework for you. Show your work and we can help. FWIW, this is a generic algorithm and the code in php, c++, c, c#, et al would be very similar in content (syntactical differences aside).
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.