您如何参与?

时间:2019-06-18 13:25:43

标签: php arrays php-7 stdclass

获取此数组的结果时遇到问题。如何检索此数组中的“消息”数据?帮助我回答循环^ _ ^

我不明白如何从该数组中检索数据

帮我解决这个问题,我很好奇,几乎不能入睡:(

Stelin \ Response \ NotificationAllResponse对象

[notifications:Stelin\Response\NotificationAllResponse:private] => Array

    (
        [0] => stdClass Object

            (

                [id] => 5d08cab143e9181df145e014
                [channelType] => push
                [messageType] => TOPUP_INFO
                [subject] => 
                [message] => {"message":"IROD FARIKON H mengirimkan dana sebesar Rp 25.000 melalui aplikasi OVO","name":"OVO ","type":"TOPUP_INFO","data":{"merchant_id":1,"merchant_invoice":"TRF-e42f7d0e5a078b68d71b6938b9b7f512c3a8105c"},"note":"","click_action":"ovo.id.intent.action.OPEN_TRANSACTION_DETAIL","ObjectId":"5d08cab143e9181df145e014"}
                [dateCreated] => 2019-06-18T18:27:45+0700
                [status] => UNREAD
                [receiver] => stdClass Object
                    (
                        [id] => 0081045021996966
                        [type] => customer
                    )


            )

        [1] => stdClass Object
            (
                [id] => 5d089d982be253bab1fef8e4
                [channelType] => push
                [messageType] => TOPUP_INFO
                [subject] => 
                [message] => {"message":"FREDY CANTONGA S mengirimkan dana sebesar Rp 25.000 melalui aplikasi OVO","name":"OVO ","type":"TOPUP_INFO","data":{"merchant_id":1,"merchant_invoice":"TRF-9d215e3544a21840c0b59f92c4ad6244400fd4c3"},"note":"","click_action":"ovo.id.intent.action.OPEN_TRANSACTION_DETAIL","ObjectId":"5d089d982be253bab1fef8e4"}
                [dateCreated] => 2019-06-18T15:15:20+0700
                [status] => UNREAD
                [receiver] => stdClass Object
                    (
                        [id] => 0081045021996966
                        [type] => customer
                    )

            )

        [2] => stdClass Object
            (
                [id] => 5d07166c43e9181df142ff50
                [channelType] => push
                [messageType] => TOPUP_INFO
                [subject] => 
                [message] => {"message":"ABDI SETIAWAN mengirimkan dana sebesar Rp 30.000 melalui aplikasi OVO","name":"OVO ","type":"TOPUP_INFO","data":{"merchant_id":1,"merchant_invoice":"TRF-2473fcad5da807ea776c29670c95e9749a3e8a17"},"note":"bshsjsjsbs perpanjang","click_action":"ovo.id.intent.action.OPEN_TRANSACTION_DETAIL","ObjectId":"5d07166c43e9181df142ff50"}
                [dateCreated] => 2019-06-17T11:26:20+0700
                [status] => UNREAD
                [receiver] => stdClass Object
                    (
                        [id] => 0081045021996966
                        [type] => customer
                    )

            )

0 个答案:

没有答案