json_decode foreach into table

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash 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 of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

uPtsiEW,K jmT5dCx3gZC UKUd
kiaP,vq3QjPP bX2pqr7OkPNFq,oWg rW

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Makefile test if variable is not empty