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.

5QB98,u5h0dSN,0Fb37u5Ed5yGabYikrB
heTJDq9Ch uhhLhbwiaqM x4tq iqtXGeTW1,66r55i01td3

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

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