title: How can i merge multiple result from multiple query in single json
body: <p>i so intersted how i can merge result from two query in single json file?</p>
  
  <blockquote>
    <p>i have one query : Select * from student</p>
    
    <p>and my second query : select * from teacher</p>
  </blockquote>
  
  <pre><code>$result = array_merge($query1, $query2);
  echo json_encode($result);
  </code></pre>
  
  <p>i have use <code>array_merge</code> but it not work, how can i fix this. Thanks for your help</p>