title: Convert array from php to javascript?
body: <p>How do i take a php array</p>
  
  <pre><code>$arr = (('date'=&gt;'03-22-2012', 'count'=&gt;1000 ), ('date'=&gt;'03-23-2011', 'count'=&gt;1170 ));
  </code></pre>
  
  <p>and convert it to:</p>
  
  <pre><code>var arr = [['03-22-2012', 1000], ['03-23-2011', 1170]]
  </code></pre>
  
  <p>usable by a javascript function?</p>
  
  <p>is there an easy way to do this?</p>