<?php

$string = '{"access_token":"ab5f49438xfbc2df2a6a927a02b5c2e2442am982c71ee8re4aee1b2c64783ddc7cab4050ed05d6aa",
"token_type":"Bearer",
"expires_in":300,
"refresh_token":"ab4156db100f148b6cgd7e17097e1f1c25dcf32a53ec64w287c0bcc5b8f8aa2d0799a413567b8d73",
"scope":"user_account send_currency currency_exchange"
}';
$json = json_decode($string);
echo $json -> token_type;