title: php how to access object array
body: <p>How to access the item array from the following object array </p>
  
  <pre><code>Cart66Cart Object
  (
  [_items:Cart66Cart:private] =&gt; Array
      (
          [2] =&gt; Cart66CartItem Object
              (
                  [_productId:Cart66CartItem:private] =&gt; 327
                  [_quantity:Cart66CartItem:private] =&gt; 3
                  [_optionInfo:Cart66CartItem:private] =&gt; 
                  [_priceDifference:Cart66CartItem:private] =&gt; 0
                  [_customFieldInfo:Cart66CartItem:private] =&gt; 
                  [_productUrl:Cart66CartItem:private] =&gt; http://localhost/odesk/cart66/fran-wilson-aloe-lip-care/
                  [_formEntryIds:Cart66CartItem:private] =&gt; Array
                      (
                      )
  
              )
  
          [3] =&gt; Cart66CartItem Object
              (
                  [_productId:Cart66CartItem:private] =&gt; 368
                  [_quantity:Cart66CartItem:private] =&gt; 2
                  [_optionInfo:Cart66CartItem:private] =&gt; 
                  [_priceDifference:Cart66CartItem:private] =&gt; 0
                  [_customFieldInfo:Cart66CartItem:private] =&gt; 
                  [_productUrl:Cart66CartItem:private] =&gt; http://localhost/odesk/cart66/beauty-strokes-basic-shadow-brush/
                  [_formEntryIds:Cart66CartItem:private] =&gt; Array
                      (
                      )
  
              )
  
      )
  
  [_promotion:Cart66Cart:private] =&gt; 
  [_promoStatus:Cart66Cart:private] =&gt; 0
  [_shippingMethodId:Cart66Cart:private] =&gt; 13
  [_liveRates:Cart66Cart:private] =&gt; Cart66LiveRates Object
      (
          [toZip] =&gt; 
          [weight] =&gt; 
          [rates] =&gt; Array
              (
              )
  
          [_toCountryCode:protected] =&gt; 
      )
  
  )
  </code></pre>