[Solved] How do I post this JSON data with PHP? This JSON different [closed]


$json = json_decode(trim(file_get_contents("url",true)));
$info =  $json['clanSearch']['results'][0]['tag'];
echo $info;

Usetrue flag and the hole data is converted to arrays with sub arrays

If you dont use true you have to get it with:

$json->clanSearch->results[0]->tag;

1

solved How do I post this JSON data with PHP? This JSON different [closed]