title: Multiple Json response to html Table format
body: <p>I want to fetch data from different servers Database and I need to shown in one Centralised server. So I have written a SELECT query in different locations and I am trying to fetch in one Centralised Server. 
  <strong>I am getting a JSON Array response.</strong></p>
  
  <p>But I tried displaying it in a HTML Table format, but I am unable to get the proper result.</p>
  
  <p>Here is my Centralised server PHP code:</p>
  
  <pre><code> &lt;?php 
      $arr = array (
                      'http://example.com/pristatus/send-curl.php', 
                      'http://example2.com/pristatus/send-curl.php'
                  );
  
                  for ($i =0; $i&lt;count($arr); $i++)
                  {
  
                      $ch = curl_init(); 
                      curl_setopt($ch, CURLOPT_URL, $arr[$i]); 
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
                  $output = curl_exec($ch); 
  
              if($output!="error"){
                      $data = json_decode($output);
                  }
                  echo "&lt;pre&gt;";
                  print_r($data);
                  curl_close($ch); 
                  }
      ?&gt;
  </code></pre>
  
  <p>Output I am getting:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [id] =&gt; 9
              [status] =&gt; OK
              [batch] =&gt; 119677
              [location] =&gt; Hyderabad
              [createdDT] =&gt; 2015-06-19 20:40:05
          )
  
  )
  Array
  (
      [0] =&gt; stdClass Object
          (
              [id] =&gt; 1
              [status] =&gt; OK
              [batch] =&gt; 56339
              [location] =&gt; Mumbai
              [createdDT] =&gt; 2015-06-19 20:40:05
          )
  
      [1] =&gt; stdClass Object
          (
              [id] =&gt; 2
              [status] =&gt; OK
              [batch] =&gt; 56339
              [location] =&gt; Mumbai
              [createdDT] =&gt; 2015-06-19 20:40:05
          )    
  )
  </code></pre>
  
  <p>Please suggest me how I can display Json response in a Table format.</p>