daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest May 17th, 2018 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top