title: How to print php array to use in javascript?
body: <p>I want to print this array :</p>
  
  <pre><code>$arr = array("foo","foo","foo");
  </code></pre>
  
  <p>if I use
  implode I will get this</p>
  
  <pre><code>foo,foo,foo
  </code></pre>
  
  <p>but I want :</p>
  
  <pre><code>"foo","foo","foo"
  </code></pre>
  
  <p>How could I do that ?</p>