I have a question about php and json. Im running this php in foreach loop. But when i get all the tank_id from the json file. I get results like
8011819314145
I want it to display like: Tank ID: 801 Tank ID: 18193 Tank ID: 14145
What i'm doing wrong? Help me thank you.
Here is my php file:
<?php
    $json = file_get_contents("https://api.worldoftanks.eu/wot/account/tanks/?application_id=demo&account_id=521997295");
    $json_tank = json_decode($json, TRUE);
    foreach ($json_tank['521997295'] as $tank_id) {
        echo $tank_id['tank_id'];
    }
?>
 
     
     
     
     
    
";` – Rajdeep Paul Jun 14 '16 at 14:53