I got the following response code from a web service API.
stdClass Object ( [balance] => 998
[batch_id] => 243941208
[cost] => 1
[num_messages] => 1
[message] => stdClass Object ( [num_parts] => 1 [sender] => TMTLCO [content] => @U0D070D240D4D00200D120D300D4100200D1F0D460D380D4D0D310D4D0D310D4D002000200D060D230D4D ) [receipt_url] => [custom] => [messages] => Array ( [0] => stdClass Object ( [id] => 117250619 [recipient] => XXXXXXXX ) ) [status] => success )
How can i extract the individual variables like balance, batch_id,cost,num_messages and others from this response using php ??