title: How to convert php array to javascript array in php
body: <p>I'm working on core php,i need how to convert PHP array to Javascript array please help me,below the my example code this there please check it.</p>
  
  <p>I tried from long time to debug but not getting any leads. please help me in resolving this issue</p>
  
  <p>Here my php array data:</p>
  
  <pre><code>Array
  (
      [0] =&gt; 001-1234567
      [1] =&gt; 1234567
      [2] =&gt; 12345678
      [3] =&gt; 12345678
      [4] =&gt; 12345678
  )
  </code></pre>
  
  <p>Here javascript array:</p>
  
  <pre><code>var cities = [
      "Aberdeen",
      "Ada",
      "Adamsville",
      "Addyston",
      "Adelphi"
  ];
  </code></pre>