title: PHP: problem inserting array inside an array
body: <p>I have a script that is using the google charts API and the gChart wrapper.</p>
  
  <p>I have an array that when dumped looks like this:</p>
  
  <pre><code>$values = implode(',', array_values($backup));
  var_dump($values);
  string(12) "8526,567,833"
  </code></pre>
  
  <p>I want to use the array like this:</p>
  
  <pre><code>$piChart = new gPieChart();
  $piChart-&gt;addDataSet(array($values));
  </code></pre>
  
  <p>I would have thought this would have looked like this:</p>
  
  <pre><code> $piChart-&gt;addDataSet(array(8526,567,833));
  </code></pre>
  
  <p>Howerver when I run the code it creates a chart with only the first value. </p>
  
  <p>Now when I hardcode the values in instead I get each value in the chart. </p>
  
  <p>Does anyone know why it's acting this way?</p>
  
  <p>Jonesy</p>