The answer comes from the server in json format, you need to display only the balance, how to do it?
I do var_dump($smsaero_api->balance()); :
array(3) { ["success"]=> bool(true) ["data"]=> array(1) { ["balance"]=> $ float(3.46) } ["message"]=> NULL } I tried to derive as follows:
$obj = json_decode($smsaero_api->balance()); print $obj->{'balance'};