PHP array of dates
<p>Can anyone help me:
I have function <code>date_range</code> that returns all dates between 2 given dates.
This is a call of that function:</p>

<pre><code>$date_array = date_range($ci,$co);
$dates = "\"" . implode("\",\"",$date_array) . "\""; 
</code></pre>

<p>A function <code>setSpecificDate</code> recieves dates and makes them unselectable. When I call function with dates, like this:</p>

<pre><code>$myCalendar-&gt;setSpecificDate(array("2013-04-10", "2013-04-12"), 0, 'year');
</code></pre>

<p>it works fine. But I wanna call it with <code>$dates</code> that are returned in <code>date_range</code> function,
like this:
<code>$myCalendar-&gt;setSpecificDate(array("$dates"), 0, 'year');</code> but it doesn't work. I tried without quotes but it also didn't work. I don't know where is the problem, <code>$dates</code> are supposed to be the same thing written like that or like "2013-04-10".
(<code>print $dates</code> looks like this: <code>"2013-05-22","2013-05-23","2013-05-24"</code>)</p>

<p>Thank you for your time!</p>
