Guest User

Untitled

a guest
May 17th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. array(2) {
  2. ["status"]=>
  3. string(7) "success"
  4. ["data"]=>
  5. array(4) {
  6. ["network"]=>
  7. string(3) "BTC"
  8. ["user_id"]=>
  9. int(20)
  10. ["address"]=>
  11. string(34) "3DHSXwP49f6iLLfQXUQTFxPcedJdy4v8ii"
  12. ["label"]=>
  13. string(7) "ndaga81"
  14. }
  15. }
  16.  
  17. $array = json_decode($json,true);
  18.  
  19. echo $array['data']['network'];
  20. echo $array['data']['address'];
  21.  
  22. $json = 'your json';
  23.  
  24. $array = json_decode($json);
  25. foreach ($array as $arr)
  26. {
  27. echo $arr->data->network; //output BTC
  28. echo $arr->data->address; //output 3DHSXwP49f6iLLfQXUQTFxPcedJdy4v8ii
  29. }
Add Comment
Please, Sign In to add comment