Here's the result of
print_r($response->Items->Item->EditorialReviews->EditorialReview)
Array
(
[0] => stdClass Object
(
[Source] => Product Description
[Content] => Acer AO725-0899
[IsLinkSuppressed] =>
)
[1] => stdClass Object
(
[Source] => Amazon.com Product Description
[Content] => Perfect portability, perfect usability: The Aspire® One AO725 N
I want to get the value from 0 to Content or 1 to Content , How can I get this?
try this:
$response->Items->Item->EditorialReviews->EditorialReview
is an array.. use the index of which u want to get the value like...array[index];
if object use.... ->yourvalue
Sounds simple enough:
To run through all of them:
Just keep following the chain:
General rule to finding the data you want from a dump like this:
Anything
Array( [x] => ...
means you append[0]
to your variable.Anything
Object( [x] => ...
means you append->x
to your variable.