I have run the below code
$api_key = 'XXXXXXXXX';
$api_url = "http://sms.eduapp.com:8381/app/miscapi/".$api_key."/getBalance/true/";
$credit_balance = file_get_contents( $api_url);
echo $credit_balance;
And got output
[{"ROUTE_ID":"101057","ROUTE":"SMSWAY_TRANS","BALANCE":"13700"}]
From the above output I just want to get value 13700 in php variable.
Thanks in advance :)