i am trying to get the merchantAccountId value from given below array
Array
(
        [status] => 1
        [result] => __PHP_Incomplete_Class Object
        (
                [__PHP_Incomplete_Class_Name] => Braintree_Result_Successful
                [success] => 1
                [_returnObjectName:Braintree_Result_Successful:private] => transaction
                [transaction] => __PHP_Incomplete_Class Object
                (
                        [__PHP_Incomplete_Class_Name] => Braintree_Transaction
                        [_attributes] => Array
                        (
                                [id] => 6vk28p
                                [status] => submitted_for_settlement
                                [type] => sale
                                [currencyIsoCode] => USD
                                [amount] => 800.00
                                [merchantAccountId] => contentorganisation
                                [orderId] =>
                                [createdAt] => DateTime Object
                                (
                                        [date] => 2015-07-24 11:51:42
                                        [timezone_type] => 3
                                        [timezone] => UTC
                                )
                        )
                )
        )
)
my code is $result['result']['transaction'] . when i print this i got this error
Fatal error: Cannot use object of type __PHP_Incomplete_Class as array in.
 
     
    