title: How can I echo multiple json source file into one loop?
body: <p>I would like to echo datas from multiple json file, but only one json file works correctly. Please help me for multiple json file. THX</p>
  
  <pre><code>&lt;?php
  
  $water = file_get_contents('https://example.com/plant.json');
  $wall = file_get_contents('https://example.com/door.json'); // How?
  
  $decode = json_decode($water);
  $data = $decode-&gt;data;
  
  foreach ($data as $datas) {
      echo '&lt;div&gt;' . $datas-&gt;ice . '&lt;/div&gt;';
      echo '&lt;div&gt;' . $datas-&gt;desk . '&lt;/div&gt;';
  }
  
  /*
  
  Content of plant.json file:
  {"data":[
      {"ice":eight,"desk":"six"},
      {"ice":"ten","desk":"cup"}
  ]}
  
  Content of door.json file:
  {"data":[
      {"ice":pen,"desk":"sing"},
      {"ice":"bear","desk":"wire"}
  ]}
  
  */
  
  ?&gt;
  </code></pre>