title: how to send array as function argument from php to javascript
body: <p>I need to pass an array as a function argument from php to js.i am getting the values from
  database.</p>
  
  <pre><code>while ($rows = pg_fetch_array($qry))
          {
              ?&gt;
              &lt;option  value="&lt;?php echo $rows['relation_name_local']?&gt;"&gt;
              &lt;?php echo $rows['relation_name_local']?&gt;
              &lt;/option&gt;
              &lt;?php
              $app_relation_array[] =  $rows['relation_name_local'];
          }?&gt;
  </code></pre>
  
  <p>i want to pass $app_relation_array[] values through addNewRow() this function
  Can anyone please help me with this.
   Thanks a lot.</p>