将数据访问到受保护的对象PHP

我会通过foreach循环此对象

Array
(
    [0] => AmazonProduct Object
        (
            [data:protected] => Array
                (
                    [Identifiers] => Array
                        (
                            [MarketplaceASIN] => Array
                                (
                                    [MarketplaceId] => xxxxx
                                    [ASIN] => B01N6JQS8C
                                )

                            [Request] => Array
                                (
                                    [Id] => B01N6JQS8C
                                    [IdType] => ASIN
                                    [status] => Success
                                )

                        )

                    [AttributeSets] => Array
                        (
                            [0] => Array
                                (
                                    [AspectRatio] => 2.21:1
                                    [Binding] => Personal Computers
                                    [Brand] => Kingston
                                    [Color] => Black
                                    [DisplaySize] => 0
                                    [HardDiskInterface] => ata_4
                                    [HardDiskSize] => 120
                                    [HardwarePlatform] => laptop
                                    [ItemDimensions] => Array
                                        (
                                            [Height] => 2.75
                                            [Length] => 3.94
                                            [Width] => 0.28
                                            [Weight] => 0.09
                                        )

                                    [IsAdultProduct] => false
                                    [IsAutographed] => false
                                    [IsMemorabilia] => false
                                    [Label] => Kingston Technology
                                    [Languages] => Array
                                        (
                                            [Language] => Array
                                                (
                                                    [Name] => spanish
                                                    [Type] => Manual
                                                )

                                        )

                                    [ListPrice] => Array
                                        (
                                            [Amount] => 21.99
                                            [CurrencyCode] => USD
                                        )

                                    [Manufacturer] => Kingston Technology
                                    [Model] => SA400S37/120G
                                    [NumberOfItems] => 1
                                    [OperatingSystem] => N/A
                                    [PackageDimensions] => Array
                                        (
                                            [Height] => 0.3937007870
                                            [Length] => 7.4803149530
                                            [Width] => 7.0866141660
                                            [Weight] => 0.1322773572
                                        )

                                    [PackageQuantity] => 1
                                    [PartNumber] => SA400S37/120G
                                    [ProcessorCount] => 0
                                    [ProductGroup] => Personal Computer
                                    [ProductTypeName] => COMPUTER_DRIVE_OR_STORAGE
                                    [Publisher] => Kingston Technology
                                    [ReleaseDate] => 2017-01-03
                                    [Size] => 120 GB
                                    [SmallImage] => Array
                                        (
                                            [URL] => http://ecx.images-amazon.com/images/I/41xE5H4zsSL._SL75_.jpg
                                            [Height] => 53
                                            [Width] => 75
                                        )

                                    [Studio] => Kingston Technology
                                    [SystemMemorySize] => 120
                                    [SystemMemoryType] => unknown
                                    [Title] => Kingston 120GB A400 SATA 3 2.5" Internal SSD SA400S37/120G - HDD Replacement for Increase Performance
                                    [Warranty] => Limited 3 Year
                                )

                        )

                    [Relationships] => Array
                        (
                            [VariationParent] => Array
                                (
                                    [0] => Array
                                        (
                                            [Identifiers] => Array
                                                (
                                                    [MarketplaceASIN] => Array
                                                        (
                                                            [MarketplaceId] => xxx
                                                            [ASIN] => B08414QWJQ
                                                        )

                                                )

                                        )

                                )

                        )

                    [SalesRankings] => Array
                        (
                            [SalesRank] => Array
                                (
                                    [0] => Array
                                        (
                                            [ProductCategoryId] => 1292116011
                                            [Rank] => 27
                                        )

                                )

                        )

                )

如何获得特定值?

评论