title: Not able to Print MultiDimensional array in PHP
body: <p>I am trying to fetch one array from an Oracle database and another from a MySQL database.</p>
  
  <p>But the arrays I get back are in different formats, and I am not able to display them in an HTML table.</p>
  
  <pre><code>$result = $instance-&gt;prepare("SELECT * from dd ");
  $result-&gt;execute();
  while ($row = $result-&gt;fetchAll(PDO::FETCH_ASSOC))
  {
      $rows2 = $row;
  }
  $array = oci_parse($conn, "SELECT * FROM DD");
  oci_execute($array);
  while($row=oci_fetch_array($array, OCI_ASSOC))
  {
      $rows1 =$row;
  }
  
  print_r($rows1);
  print_r($rows2);
  
  $output = array_merge($rows1,$rows2);
  print_r($output);
  </code></pre>
  
  <p>Here <code>$instance</code> and <code>$conn</code> are the respective connection variables.</p>
  
  <p>The outputs I get after printing the two arrays are:</p>
  
  <p>Array from Oracle:</p>
  
  <pre><code>Array ( [CLIENTID] =&gt; 2 [CLIENTNAME] =&gt; dsd [PHONENO] =&gt; 53556535 [ADDRESS] =&gt; Mumbai [ROUTE] =&gt; 4323 ) 
  </code></pre>
  
  <p>Array from MySQL:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [ClientId] =&gt; 3 [ClientName] =&gt; PQR [PhoneNo] =&gt; 786483744 [Address] =&gt; Pune [Route] =&gt; 3329 ) ) 
  </code></pre>
  
  <p>And after merging I get this array:</p>
  
  <pre><code>Array ( [CLIENTID] =&gt; 2 [CLIENTNAME] =&gt; dsd [PHONENO] =&gt; 53556535 [ADDRESS] =&gt; Mumbai [ROUTE] =&gt; 4323 [0] =&gt; Array ( [ClientId] =&gt; 3 [ClientName] =&gt; PQR [PhoneNo] =&gt; 786483744 [Address] =&gt; Pune [Route] =&gt; 3329 ) )
  </code></pre>
  
  <p>How do I print this in a table in HTML format?</p>