fork download
  1. <?php
  2.  
  3. $string = '{"access_token":"ab5f49438xfbc2df2a6a927a02b5c2e2442am982c71ee8re4aee1b2c64783ddc7cab4050ed05d6aa",
  4. "token_type":"Bearer",
  5. "expires_in":300,
  6. "refresh_token":"ab4156db100f148b6cgd7e17097e1f1c25dcf32a53ec64w287c0bcc5b8f8aa2d0799a413567b8d73",
  7. "scope":"user_account send_currency currency_exchange"
  8. }';
  9. $json = json_decode($string);
  10. echo $json -> token_type;
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
Bearer