Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot get StdClass Array to output single values
    primarykey
    data
    text
    <p>I can return nothing by trying to access the array like this:</p> <p>$title = $response->Items->Item->ItemAttributes->Title;</p> <p>$ISBN = $response->Items->Item->ItemAttributes->ISBN;</p> <p>Any Help?</p> <p>print_r($response) returns:</p> <pre><code>Array </code></pre> <p>( [OperationRequest] => stdClass Object ( [HTTPHeaders] => stdClass Object ( [Header] => stdClass Object ( [Name] => UserAgent [Value] => PHP-SOAP/5.3.24 )</p> <pre><code> ) [RequestId] =&gt; 827356ca-4459-45b3-abed-f4abf17e50ee [Arguments] =&gt; stdClass Object ( [Argument] =&gt; stdClass Object ( [Name] =&gt; Service [Value] =&gt; AWSECommerceService ) ) [RequestProcessingTime] =&gt; 0.186987 ) [Items] =&gt; stdClass Object ( [Request] =&gt; stdClass Object ( [IsValid] =&gt; True [ItemSearchRequest] =&gt; stdClass Object ( [Keywords] =&gt; 1933916958 [ResponseGroup] =&gt; Large [SearchIndex] =&gt; Books ) ) [TotalResults] =&gt; 1 [TotalPages] =&gt; 1 [MoreSearchResultsUrl] =&gt; http://www.amazon.com/gp/redirect.html?camp=2025&amp;creative=386001&amp;location=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fsearch%3Fkeywords%3D1933916958%26url%3Dsearch-alias%253Dstripbooks&amp;linkCode=sp1&amp;tag=&amp;SubscriptionId= [Item] =&gt; stdClass Object ( [ASIN] =&gt; 1933916958 [DetailPageURL] =&gt; http://www.amazon.com/I-Am-Stumped-Lisa-Rivard/dp/1933916958%3FSubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1933916958 [ItemLinks] =&gt; stdClass Object ( [ItemLink] =&gt; Array ( [0] =&gt; stdClass Object ( [Description] =&gt; Technical Details [URL] =&gt; http://www.amazon.com/I-Am-Stumped-Lisa-Rivard/dp/tech-data/1933916958%3FSubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) [1] =&gt; stdClass Object ( [Description] =&gt; Add To Baby Registry [URL] =&gt; http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3D1933916958%26SubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) [2] =&gt; stdClass Object ( [Description] =&gt; Add To Wedding Registry [URL] =&gt; http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3D1933916958%26SubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) [3] =&gt; stdClass Object ( [Description] =&gt; Add To Wishlist [URL] =&gt; http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3D1933916958%26SubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) [4] =&gt; stdClass Object ( [Description] =&gt; Tell A Friend [URL] =&gt; http://www.amazon.com/gp/pdp/taf/1933916958%3FSubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) [5] =&gt; stdClass Object ( [Description] =&gt; All Customer Reviews [URL] =&gt; http://www.amazon.com/review/product/1933916958%3FSubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) [6] =&gt; stdClass Object ( [Description] =&gt; All Offers [URL] =&gt; http://www.amazon.com/gp/offer-listing/1933916958%3FSubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 ) ) ) [SalesRank] =&gt; 2163913 [SmallImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL75_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 75 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 75 [Units] =&gt; pixels ) ) [MediumImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL160_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 160 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 160 [Units] =&gt; pixels ) ) [LargeImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 500 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 500 [Units] =&gt; pixels ) ) [ImageSets] =&gt; stdClass Object ( [ImageSet] =&gt; stdClass Object ( [SwatchImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL30_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 30 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 30 [Units] =&gt; pixels ) ) [SmallImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL75_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 75 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 75 [Units] =&gt; pixels ) ) [ThumbnailImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL75_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 75 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 75 [Units] =&gt; pixels ) ) [TinyImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL110_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 110 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 110 [Units] =&gt; pixels ) ) [MediumImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L._SL160_.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 160 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 160 [Units] =&gt; pixels ) ) [LargeImage] =&gt; stdClass Object ( [URL] =&gt; http://ecx.images-amazon.com/images/I/51vOOdcil6L.jpg [Height] =&gt; stdClass Object ( [_] =&gt; 500 [Units] =&gt; pixels ) [Width] =&gt; stdClass Object ( [_] =&gt; 500 [Units] =&gt; pixels ) ) [Category] =&gt; primary ) ) [ItemAttributes] =&gt; stdClass Object ( [Author] =&gt; Lisa Rivard [Binding] =&gt; Paperback [Creator] =&gt; stdClass Object ( [_] =&gt; Colleen Murray Fisher [Role] =&gt; Illustrator ) [EAN] =&gt; 9781933916958 [EANList] =&gt; stdClass Object ( [EANListElement] =&gt; 9781933916958 ) [ISBN] =&gt; 1933916958 [ItemDimensions] =&gt; stdClass Object ( [Height] =&gt; stdClass Object ( [_] =&gt; 878 [Units] =&gt; hundredths-inches ) [Length] =&gt; stdClass Object ( [_] =&gt; 31 [Units] =&gt; hundredths-inches ) [Weight] =&gt; stdClass Object ( [_] =&gt; 30 [Units] =&gt; hundredths-pounds ) [Width] =&gt; stdClass Object ( [_] =&gt; 866 [Units] =&gt; hundredths-inches ) ) [Label] =&gt; Ferne Press [Languages] =&gt; stdClass Object ( [Language] =&gt; Array ( [0] =&gt; stdClass Object ( [Name] =&gt; English [Type] =&gt; Unknown ) [1] =&gt; stdClass Object ( [Name] =&gt; English [Type] =&gt; Original Language ) [2] =&gt; stdClass Object ( [Name] =&gt; English [Type] =&gt; Published ) ) ) [ListPrice] =&gt; stdClass Object ( [Amount] =&gt; 1095 [CurrencyCode] =&gt; USD [FormattedPrice] =&gt; $10.95 ) [Manufacturer] =&gt; Ferne Press [NumberOfItems] =&gt; 1 [NumberOfPages] =&gt; 32 [PackageDimensions] =&gt; stdClass Object ( [Height] =&gt; stdClass Object ( [_] =&gt; 30 [Units] =&gt; hundredths-inches ) [Length] =&gt; stdClass Object ( [_] =&gt; 890 [Units] =&gt; hundredths-inches ) [Weight] =&gt; stdClass Object ( [_] =&gt; 35 [Units] =&gt; hundredths-pounds ) [Width] =&gt; stdClass Object ( [_] =&gt; 880 [Units] =&gt; hundredths-inches ) ) [ProductGroup] =&gt; Book [ProductTypeName] =&gt; ABIS_BOOK [PublicationDate] =&gt; 2012-02-15 [Publisher] =&gt; Ferne Press [SKU] =&gt; 38594 [Studio] =&gt; Ferne Press [Title] =&gt; I Am Stumped! ) [OfferSummary] =&gt; stdClass Object ( [LowestNewPrice] =&gt; stdClass Object ( [Amount] =&gt; 652 [CurrencyCode] =&gt; USD [FormattedPrice] =&gt; $6.52 ) [LowestUsedPrice] =&gt; stdClass Object ( [Amount] =&gt; 1 [CurrencyCode] =&gt; USD [FormattedPrice] =&gt; $0.01 ) [TotalNew] =&gt; 9 [TotalUsed] =&gt; 6 [TotalCollectible] =&gt; 0 [TotalRefurbished] =&gt; 0 ) [Offers] =&gt; stdClass Object ( [TotalOffers] =&gt; 1 [TotalOfferPages] =&gt; 1 [MoreOffersUrl] =&gt; http://www.amazon.com/gp/offer-listing/1933916958%3FSubscriptionId%3D%26tag%3D%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3D1933916958 [Offer] =&gt; stdClass Object ( [OfferAttributes] =&gt; stdClass Object ( [Condition] =&gt; New ) [OfferListing] =&gt; stdClass Object ( [OfferListingId] =&gt; aHNL56yCKgoOwR9cqtskiy8iY%2B6ft1PDE%2FNUX7mlIfBkGcVKgCxSkvahafNTpHaN2YmBHIHfE2h4hONpYIwIED02MwIG2u4dSC4t%2BSaYVh8cRJvanet8VA%3D%3D [Price] =&gt; stdClass Object ( [Amount] =&gt; 986 [CurrencyCode] =&gt; USD [FormattedPrice] =&gt; $9.86 ) [AmountSaved] =&gt; stdClass Object ( [Amount] =&gt; 109 [CurrencyCode] =&gt; USD [FormattedPrice] =&gt; $1.09 ) [PercentageSaved] =&gt; 10 [Availability] =&gt; Usually ships in 24 hours [AvailabilityAttributes] =&gt; stdClass Object ( [AvailabilityType] =&gt; now [MinimumHours] =&gt; 0 [MaximumHours] =&gt; 0 ) [IsEligibleForSuperSaverShipping] =&gt; 1 ) ) ) [CustomerReviews] =&gt; stdClass Object ( [IFrameURL] =&gt; http://www.amazon.com/reviews/iframe?akid=&amp;alinkCode=sp1&amp;asin=1933916958&amp;atag=&amp;exp=2013-08-08T23%3A01%3A28Z&amp;v=2&amp;sig=ooHZSabKAym%2BTAQVErbn36Ng95H65hAhTUgn9REzmE8%3D [HasReviews] =&gt; 1 ) [EditorialReviews] =&gt; stdClass Object ( [EditorialReview] =&gt; stdClass Object ( [Source] =&gt; Product Description [Content] =&gt; All Aiden wants to do is play with his friends, but his name starts with the wrong letter, he's wearing the wrong color, and is eating the wrong food. He's so confused that he's stumped! Lisa Rivard's I Am Stumped! teaches kids how to get along and that three is not a crowd. [IsLinkSuppressed] =&gt; ) ) [BrowseNodes] =&gt; stdClass Object ( [BrowseNode] =&gt; stdClass Object ( [BrowseNodeId] =&gt; 3153 [Name] =&gt; Friendship [Ancestors] =&gt; stdClass Object ( [BrowseNode] =&gt; stdClass Object ( [BrowseNodeId] =&gt; 7009087011 [Name] =&gt; Friendship, Social Skills &amp; School Life [Ancestors] =&gt; stdClass Object ( [BrowseNode] =&gt; stdClass Object ( [BrowseNodeId] =&gt; 1084192 [Name] =&gt; Growing Up &amp; Facts of Life [Ancestors] =&gt; stdClass Object ( [BrowseNode] =&gt; stdClass Object ( [BrowseNodeId] =&gt; 4 [Name] =&gt; Children's Books [Ancestors] =&gt; stdClass Object ( [BrowseNode] =&gt; stdClass Object ( [BrowseNodeId] =&gt; 1000 [Name] =&gt; Subjects [IsCategoryRoot] =&gt; 1 [Ancestors] =&gt; stdClass Object ( [BrowseNode] =&gt; stdClass Object ( [BrowseNodeId] =&gt; 283155 [Name] =&gt; Books ) ) ) ) ) ) ) ) ) ) ) ) ) ) </code></pre> <p>)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload