json_decode foreach into table

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.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

'Series' object is not callable Error / Statsmodels illegal variable name