php stdclass打印表

时间:2018-11-25 20:35:34

标签: php arrays stdclass

有人知道该怎么做吗?我想对表productName和php进行html循环处理

stdClass Object
(
    [result] => stdClass Object
        (
            [status] => success
        )

    [orderList] => stdClass Object
        (
            [order] => stdClass Object
                (
                    [id] => 176219312
                    [status] => 2
                    [orderNumber] => 207487671487
                    [totalAmount] => 172.14
                    [paymentType] => 1
                    [citizenshipId] => 30571312394
                    [orderItemList] => stdClass Object
                        (
                            [orderItem] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [id] => 118748500
                                            [productSellerCode] => ESPLAPLBLK
                                            [price] => 86.07
                                            [sellerDiscount] => 0
                                            [mallDiscount] => 0
                                            [commission] => 5.16
                                            [status] => 2
                                            [quantity] => 1
                                            [productName] => ESX 1.75MMPLUS
                                            [deliveryFeeType] => 2
                                            [dueAmount] => 86.07
                                            [shipmentInfo] => stdClass Object
                                                (
                                                    [shipmentCode] => 111222817
                                                    [shipmentMethod] => 2
                                                    [campaignNumberStatus] => 2
                                                )

                                            [attributes] => stdClass Object
                                                (
                                                )

                                            [customTextOptionValues] => stdClass Object
                                                (
                                                )

                                            [updatedDate] => 25/11/2018 16:25
                                        )

                                    [1] => stdClass Object
                                        (
                                            [id] => 118748501
                                            [productSellerCode] => ESPLAPLLBL
                                            [price] => 86.07
                                            [sellerDiscount] => 0
                                            [mallDiscount] => 0
                                            [commission] => 5.16
                                            [status] => 2
                                            [quantity] => 1
                                            [productName] => ESP 2.75MMPLUS
                                            [deliveryFeeType] => 2
                                            [dueAmount] => 86.07
                                            [shipmentInfo] => stdClass Object
                                                (
                                                    [shipmentCode] => 111222818
                                                    [shipmentMethod] => 2
                                                    [campaignNumberStatus] => 2
                                                )

                                            [attributes] => stdClass Object
                                                (
                                                )

                                            [customTextOptionValues] => stdClass Object
                                                (
                                                )

                                            [updatedDate] => 25/11/2018 16:25
                                        )

                                )

                        )

0 个答案:

没有答案