json_decode foreach into table
Clash Royale CLAN TAG #URR8PPP json_decode foreach into table Having Issues with nested arrays I Want to get the array title into the first cell of the table, having an issue articulated the nested foreach. $content = file_get_contents("https://whattomine.com/asic.json"); $data = json_decode($content); echo "coins"; foreach() { echo "<tr>"; echo "<th>".$coins->coinname."</th>"; echo "<th>".$coins->PoW."</th>"; echo "<th>".$coins->PoS."</th>"; echo "<th>".$coins->height."</th>"; echo "<th>".$coins->diff."</th>"; echo "<th>".$coins->supply."</th>"; echo "</tr>"; } By clicking "Post Your Answer", you acknowledge that you have read our updated terms o...