title: How to grab JSON items from stdClass
body: <p>I'm using the Amazon API to pull info on products. I used this to pull the info:</p>
  
  <pre><code>$response = $amazonEcs-&gt;responseGroup('OfferFull')-&gt;lookup('B00IXO8I0O');
  var_dump($response);
  </code></pre>
  
  <p>It outputs this (Warning -- long output, you can scroll to the bottom):</p>
  
  <p>I can't figure out how to get the "FormattedPrice." (or any items for that matter)</p>
  
  <p>How can I start pulling data out of that instead of the var_dump().</p>
  
  <pre><code>object(stdClass)#6 (2) {
    ["OperationRequest"]=&gt;
    object(stdClass)#7 (4) {
      ["HTTPHeaders"]=&gt;
      object(stdClass)#8 (1) {
        ["Header"]=&gt;
        object(stdClass)#9 (2) {
          ["Name"]=&gt;
          string(9) "UserAgent"
          ["Value"]=&gt;
          string(14) "PHP-SOAP/5.5.3"
        }
      }
      ["RequestId"]=&gt;
      string(36) "3f1671a9-2b85-4905-9362-3f43f5652528"
      ["Arguments"]=&gt;
      object(stdClass)#10 (1) {
        ["Argument"]=&gt;
        object(stdClass)#11 (2) {
          ["Name"]=&gt;
          string(7) "Service"
          ["Value"]=&gt;
          string(19) "AWSECommerceService"
        }
      }
      ["RequestProcessingTime"]=&gt;
      float(0.015202)
    }
    ["Items"]=&gt;
    object(stdClass)#12 (2) {
      ["Request"]=&gt;
      object(stdClass)#13 (2) {
        ["IsValid"]=&gt;
        string(4) "True"
        ["ItemLookupRequest"]=&gt;
        object(stdClass)#14 (4) {
          ["IdType"]=&gt;
          string(4) "ASIN"
          ["ItemId"]=&gt;
          string(10) "B00IXO8I0O"
          ["ResponseGroup"]=&gt;
          string(9) "OfferFull"
          ["VariationPage"]=&gt;
          string(3) "All"
        }
      }
      ["Item"]=&gt;
      object(stdClass)#15 (3) {
        ["ASIN"]=&gt;
        string(10) "B00IXO8I0O"
        ["OfferSummary"]=&gt;
        object(stdClass)#16 (5) {
          ["LowestNewPrice"]=&gt;
          object(stdClass)#17 (3) {
            ["Amount"]=&gt;
            int(29999)
            ["CurrencyCode"]=&gt;
            string(3) "USD"
            ["FormattedPrice"]=&gt;
            string(7) "$299.99"
          }
          ["TotalNew"]=&gt;
          string(1) "1"
          ["TotalUsed"]=&gt;
          string(1) "0"
          ["TotalCollectible"]=&gt;
          string(1) "0"
          ["TotalRefurbished"]=&gt;
          string(1) "0"
        }
        ["Offers"]=&gt;
        object(stdClass)#18 (4) {
          ["TotalOffers"]=&gt;
          int(1)
          ["TotalOfferPages"]=&gt;
          int(1)
          ["MoreOffersUrl"]=&gt;
          string(190) "http://www.amazon.com/gp/offer-listing/B00IXO8I0O%3FSubscriptionId%3DAKIAJ4C2HRQEA5R5WQSA%26tag%3Dserineethi-20%26linkCode%3Dsp1%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00IXO8I0O"
          ["Offer"]=&gt;
          object(stdClass)#19 (3) {
            ["Merchant"]=&gt;
            object(stdClass)#20 (1) {
              ["Name"]=&gt;
              string(19) "UnbeatableSale, Inc"
            }
            ["OfferAttributes"]=&gt;
            object(stdClass)#21 (1) {
              ["Condition"]=&gt;
              string(3) "New"
            }
            ["OfferListing"]=&gt;
            object(stdClass)#22 (8) {
              ["OfferListingId"]=&gt;
              string(136) "OFsamQIWSTf8O3%2F5DWBmJ633GwRX2m%2FNqcretgjz%2BoyFZJJ6QPbz8tL1YKIBYZZnOAl3AW75luhO6gbvyGV9Rr3fNI9xxUktwSzxDqtZa02RA64n3gRKtV%2BnOlgfINfn"
              ["Price"]=&gt;
              object(stdClass)#23 (3) {
                ["Amount"]=&gt;
                int(38999)
                ["CurrencyCode"]=&gt;
                string(3) "USD"
                ["FormattedPrice"]=&gt;
                string(7) "$389.99"
              }
              ["SalePrice"]=&gt;
              object(stdClass)#24 (3) {
                ["Amount"]=&gt;
                int(29999)
                ["CurrencyCode"]=&gt;
                string(3) "USD"
                ["FormattedPrice"]=&gt;
                string(7) "$299.99"
              }
              ["AmountSaved"]=&gt;
              object(stdClass)#25 (3) {
                ["Amount"]=&gt;
                int(9000)
                ["CurrencyCode"]=&gt;
                string(3) "USD"
                ["FormattedPrice"]=&gt;
                string(6) "$90.00"
              }
              ["PercentageSaved"]=&gt;
              int(23)
              ["Availability"]=&gt;
              string(34) "Usually ships in 4-5 business days"
              ["AvailabilityAttributes"]=&gt;
              object(stdClass)#26 (3) {
                ["AvailabilityType"]=&gt;
                string(3) "now"
                ["MinimumHours"]=&gt;
                int(96)
                ["MaximumHours"]=&gt;
                int(120)
              }
              ["IsEligibleForSuperSaverShipping"]=&gt;
              bool(false)
            }
          }
        }
      }
    }
  }
  </code></pre>