Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array(2) {
- ["status"]=>
- string(7) "success"
- ["data"]=>
- array(4) {
- ["network"]=>
- string(3) "BTC"
- ["user_id"]=>
- int(20)
- ["address"]=>
- string(34) "3DHSXwP49f6iLLfQXUQTFxPcedJdy4v8ii"
- ["label"]=>
- string(7) "ndaga81"
- }
- }
- $array = json_decode($json,true);
- echo $array['data']['network'];
- echo $array['data']['address'];
- $json = 'your json';
- $array = json_decode($json);
- foreach ($array as $arr)
- {
- echo $arr->data->network; //output BTC
- echo $arr->data->address; //output 3DHSXwP49f6iLLfQXUQTFxPcedJdy4v8ii
- }
Add Comment
Please, Sign In to add comment