problem in checking holiday using php
<p>I am very new to php.<br>
I am working with a leave application where a user select some dates for applying leave.</p>

<p>The user input is in form of (<code>2010-09-03</code> for <code>3rd sep 2010</code> and <code>2010-09-06</code> for <code>6th sep 2010</code>).<br>
2<sup>nd</sup> and 4<sup>th</sup> saturday  would be holiday in every month including sunday.</p>

<p>I want to display the number of leaves he applied for. Suppose if a user selects <code>3rd sep</code> to <code>6th sep</code> it should display the number of leaves as <code>3</code> and if selects 10<sup>th</sup> sep to 13<sup>th</sup> sep it should display the number of leaves as 2 (because of 2<sup>nd</sup> saturday and a sunday).</p>

<p>What is the best way to do this?</p>
