calculate the dates that are between two days of the week
<p>I need an algorithm that calculates dates that are between two days of the week!
for example i have </p>

<p>start date: 23-04-2012 and end date: 27-04-2012</p>

<p>now i want receive an array with this structure:</p>

<pre><code>$arr = array(
  '23-04-2012',
  '24-04-2012',
  '25-04-2012',
  '26-04-2012', 
  '27-04-2012', 
  '28-04-2012'
);
</code></pre>

<p>thanks!</p>
