title: Print or Display PHP array in Browser Console or in Javascript
body: <p>i need to print php array in browser console using javascript</p>
  
  <p>here i shared my code </p>
  
  <pre><code>&lt;?php
  function browser_console($data) {
      echo "&lt;script&gt;console.log('" . $data . "');&lt;/script&gt;";
  }
  </code></pre>
  
  <p>if anybody knows best code let me know .</p>
  
  <p>thank you</p>