title: How to convert php array to js array?
body: <p>I have a php array which i need to convert and assign that to <code>var locationsArray</code></p>
  
  <p>required format:</p>
  
  <pre><code>var locationsArray = [
      ['Google Official','1600 Amphitheatre Parkway, Mountain View, USA'],
      ['Google 1','112 S. Main St., Ann Arbor, USA'], 
      ['Google 2','10 10th Street NE, Suite 600 USA']
  ];
  </code></pre>