Need help completing PHP function - return array of dates
<p>I need to create a function for a project I'm working on:</p>

<p>Given 3 variables:</p>

<ol>
<li>start date</li>
<li>array of days</li>
<li># of dates to return</li>
</ol>

<p>Return the dates</p>

<p>ie/</p>

<pre><code>$start_date = "01-01-2011"
$days[] = [[Monday],[Wednesday],[Friday]]
$number_dates = 9
</code></pre>

<p>Should return:</p>

<pre><code>$dates[] = [[03-01-2011],[05-01-2011],[07-01-2011],[10-01-2011],[12-01-2011],[14-01-2011],[17-01-2011],[19-01-2011],[21-01-2011]]
</code></pre>

<p>How can I achieve this the simplest way possible</p>
