title: Assigning a php array into a javascript array
body: <p>I am trying to assign a PHP array into a javascript variable like this:  </p>
  
  <pre><code>var jsArray = &lt;?php echo $phpArray; ?&gt;;
  </code></pre>
  
  <p>But it doesn't work.<br>
  What am I doing wrong?</p>