Function to return the date of delivery without Saturdays, Sundays and holidays
<p>How do I write a function in PHP that returns the date of delivery without Saturdays, Sundays and holidays?</p>

<p>For example: for same product delivery is in 3 days for others in 5 days.</p>

<p>If I do a command today I will receive my command in 3 days without Saturdays, Sundays and holidays.</p>

<p>If I do my command now "29/12/2011" for a product "3j" I will receive your command at "4/1/2011"  </p>

<p>In the database I have just how much the day for every type product is.</p>

<p>For example:  </p>

<pre><code>prod1: 3day  
prod2: 5day  
prod3: 7day   
</code></pre>

<p>I tried to do a function but failed.</p>
