title: how to fetch particular data from expedia's V3 PHP Hotel List Request?
body: <p>It seems very stupid but for last 2 housr's i am trying to extract particular data from the expedia's EAN api's responce The php code is</p>
  
  <pre><code>$response = json_decode(curl_exec($ch));
  print_r($response);
  </code></pre>
  
  <p>and the responce is</p>
  
  <p><a href="http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=99&amp;apiKey=baabqgw8s9xsvn2e2at2yxzb&amp;cid=443449&amp;locale=en_US&amp;city=Dallas&amp;stateProvinceCode=TX&amp;countryCode=US&amp;numberOfResults=3&amp;searchRadius=50&amp;supplierCacheTolerance=MED_ENHANCED&amp;arrivalDate=09/04/2014&amp;departureDate=09/05/2014&amp;room1=2" rel="nofollow">http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=99&amp;apiKey=baabqgw8s9xsvn2e2at2yxzb&amp;cid=443449&amp;locale=en_US&amp;city=Dallas&amp;stateProvinceCode=TX&amp;countryCode=US&amp;numberOfResults=3&amp;searchRadius=50&amp;supplierCacheTolerance=MED_ENHANCED&amp;arrivalDate=09/04/2014&amp;departureDate=09/05/2014&amp;room1=2</a></p>
  
  <p>stdClass Object
  (
      [HotelListResponse] => stdClass Object
          (
              [customerSessionId] => 0ABAAA76-DF68-EE91-4142-F5BA98F936A7
              [numberOfRoomsRequested] => 1
              [moreResultsAvailable] => 1
              [cacheKey] => -20df68ee:1414f5ba98f:37f4
              [cacheLocation] => 10.186.170.118:7300
              [cachedSupplierResponse] => stdClass Object
                  (
                      [@supplierCacheTolerance] => MED_ENHANCED
                      [@cachedTime] => 0
                      [@supplierRequestNum] => 465
                      [@supplierResponseNum] => 3
                      [@supplierResponseTime] => 1420
                      [@candidatePreptime] => 7
                      [@otherOverheadTime] => 22
                      [@tpidUsed] => 5001
                      [@matchedCurrency] => true
                      [@matchedLocale] => true
                  )</p>
  
  <pre><code>        [HotelList] =&gt; stdClass Object
              (
                  [@size] =&gt; 3
                  [@activePropertyCount] =&gt; 499
                  [HotelSummary] =&gt; Array
                      (
                          [0] =&gt; stdClass Object
                              (
                                  [@order] =&gt; 0
                                  [@ubsScore] =&gt; 2735759
                                  [hotelId] =&gt; 115100
                                  [name] =&gt; Hilton Anatole
                                  [address1] =&gt; 2201 N Stemmons Freeway
                                  [city] =&gt; Dallas
                                  [stateProvinceCode] =&gt; TX
                                  [postalCode] =&gt; 75207
                                  [countryCode] =&gt; US
                                  [airportCode] =&gt; DFW
                                  [supplierType] =&gt; E
                                  [propertyCategory] =&gt; 1
                                  [hotelRating] =&gt; 4
                                  [confidenceRating] =&gt; 52
                                  [amenityMask] =&gt; 7831690
                                  [tripAdvisorRating] =&gt; 4
                                  [tripAdvisorReviewCount] =&gt; 873
                                  [tripAdvisorRatingUrl] =&gt; http://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.gif
                                  [locationDescription] =&gt; In Dallas (Market Center)
                                  [shortDescription] =&gt; &lt;p&gt;&lt;b&gt;Property Location&lt;/b&gt; &lt;br /&gt;You'll be centrally located in Dallas with a stay at Hilton Anatole, steps from Dallas Market Center and close to American Airlines Center. This 4-star hotel is
                                  [highRate] =&gt; 139
                                  [lowRate] =&gt; 139
                                  [rateCurrencyCode] =&gt; USD
                                  [latitude] =&gt; 32.80057
                                  [longitude] =&gt; -96.82661
                                  [proximityDistance] =&gt; 4.350429
                                  [proximityUnit] =&gt; MI
                                  [hotelInDestination] =&gt; 1
                                  [thumbNailUrl] =&gt; /hotels/1000000/30000/23000/22945/22945_63_t.jpg
                                  [deepLink] =&gt; http://travel.ian.com/index.jsp?pageName=hotAvail&amp;cid=55505&amp;hotelID=115100&amp;mode=2&amp;numberOfRooms=1&amp;room-0-adult-total=2&amp;room-0-child-total=0&amp;arrivalMonth=8&amp;arrivalDay=4&amp;departureMonth=8&amp;departureDay=5&amp;showInfo=true&amp;locale=en_US
                                  [RoomRateDetailsList] =&gt; stdClass Object
                                      (
                                          [RoomRateDetails] =&gt; stdClass Object
                                              (
                                                  [roomTypeCode] =&gt; 2311
                                                  [rateCode] =&gt; 2311
                                                  [maxRoomOccupancy] =&gt; 4
                                                  [quotedRoomOccupancy] =&gt; 2
                                                  [minGuestAge] =&gt; 0
                                                  [roomDescription] =&gt; 2 Double Beds Standard
                                                  [propertyAvailable] =&gt; 1
                                                  [propertyRestricted] =&gt; 
                                                  [expediaPropertyId] =&gt; 22945
                                                  [RateInfos] =&gt; stdClass Object
                                                      (
                                                          [@size] =&gt; 1
                                                          [RateInfo] =&gt; stdClass Object
                                                              (
                                                                  [@priceBreakdown] =&gt; true
                                                                  [@promo] =&gt; false
                                                                  [@rateChange] =&gt; false
                                                                  [RoomGroup] =&gt; stdClass Object
                                                                      (
                                                                          [Room] =&gt; stdClass Object
                                                                              (
                                                                                  [numberOfAdults] =&gt; 2
                                                                                  [numberOfChildren] =&gt; 0
                                                                              )
  
                                                                      )
  
                                                                  [ChargeableRateInfo] =&gt; stdClass Object
                                                                      (
                                                                          [@averageBaseRate] =&gt; 139.0
                                                                          [@averageRate] =&gt; 139.0
                                                                          [@commissionableUsdTotal] =&gt; 139.0
                                                                          [@currencyCode] =&gt; USD
                                                                          [@maxNightlyRate] =&gt; 139.0
                                                                          [@nightlyRateTotal] =&gt; 139.0
                                                                          [@surchargeTotal] =&gt; 26.0
                                                                          [@total] =&gt; 165.0
                                                                          [NightlyRatesPerRoom] =&gt; stdClass Object
                                                                              (
                                                                                  [@size] =&gt; 1
                                                                                  [NightlyRate] =&gt; stdClass Object
                                                                                      (
                                                                                          [@baseRate] =&gt; 139.0
                                                                                          [@rate] =&gt; 139.0
                                                                                          [@promo] =&gt; false
                                                                                      )
  
                                                                              )
  
                                                                          [Surcharges] =&gt; stdClass Object
                                                                              (
                                                                                  [@size] =&gt; 1
                                                                                  [Surcharge] =&gt; stdClass Object
                                                                                      (
                                                                                          [@type] =&gt; TaxAndServiceFee
                                                                                          [@amount] =&gt; 26.0
                                                                                      )
  
                                                                              )
  
                                                                      )
  
                                                                  [nonRefundable] =&gt; 
                                                                  [HotelFees] =&gt; stdClass Object
                                                                      (
                                                                          [@size] =&gt; 1
                                                                          [HotelFee] =&gt; stdClass Object
                                                                              (
                                                                                  [@description] =&gt; MandatoryTax
                                                                                  [@amount] =&gt; 21.45
                                                                              )
  
                                                                      )
  
                                                                  [rateType] =&gt; MerchantStandard
                                                                  [currentAllotment] =&gt; 0
                                                              )
  
                                                      )
  
                                              )
  
                                      )
  
                              )
  
                          [1] =&gt; stdClass Object
                              (
                                  [@order] =&gt; 1
                                  [@ubsScore] =&gt; 1751598
                                  [hotelId] =&gt; 106103
                                  [name] =&gt; Hyatt Regency Dallas
                                  [address1] =&gt; 300 Reunion Blvd
                                  [city] =&gt; Dallas
                                  [stateProvinceCode] =&gt; TX
                                  [postalCode] =&gt; 75207
                                  [countryCode] =&gt; US
                                  [airportCode] =&gt; DFW
                                  [supplierType] =&gt; E
                                  [propertyCategory] =&gt; 1
                                  [hotelRating] =&gt; 4
                                  [confidenceRating] =&gt; 68
                                  [amenityMask] =&gt; 7831688
                                  [tripAdvisorRating] =&gt; 4
                                  [tripAdvisorReviewCount] =&gt; 698
                                  [tripAdvisorRatingUrl] =&gt; http://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-12345-4.gif
                                  [locationDescription] =&gt; Near Dallas Convention Center
                                  [shortDescription] =&gt; &lt;p&gt;&lt;b&gt;Property Location&lt;/b&gt; &lt;br /&gt;With a stay at Hyatt Regency Dallas, you'll be centrally located in Dallas, steps from Reunion Tower and minutes from Dealey Plaza. This 4-star hotel is close to
                                  [highRate] =&gt; 149.49
                                  [lowRate] =&gt; 149.49
                                  [rateCurrencyCode] =&gt; USD
                                  [latitude] =&gt; 32.77508
                                  [longitude] =&gt; -96.80985
                                  [proximityDistance] =&gt; 5.8526316
                                  [proximityUnit] =&gt; MI
                                  [hotelInDestination] =&gt; 1
                                  [thumbNailUrl] =&gt; /hotels/1000000/30000/24800/24753/24753_164_t.jpg
                                  [deepLink] =&gt; http://travel.ian.com/index.jsp?pageName=hotAvail&amp;cid=55505&amp;hotelID=106103&amp;mode=2&amp;numberOfRooms=1&amp;room-0-adult-total=2&amp;room-0-child-total=0&amp;arrivalMonth=8&amp;arrivalDay=4&amp;departureMonth=8&amp;departureDay=5&amp;showInfo=true&amp;locale=en_US
                                  [RoomRateDetailsList] =&gt; stdClass Object
                                      (
                                          [RoomRateDetails] =&gt; stdClass Object
                                              (
                                                  [roomTypeCode] =&gt; 200338598
                                                  [rateCode] =&gt; 202085545
                                                  [maxRoomOccupancy] =&gt; 4
                                                  [quotedRoomOccupancy] =&gt; 2
                                                  [minGuestAge] =&gt; 0
                                                  [roomDescription] =&gt; Two Queen Beds
                                                  [propertyAvailable] =&gt; 1
                                                  [propertyRestricted] =&gt; 
                                                  [expediaPropertyId] =&gt; 24753
                                                  [RateInfos] =&gt; stdClass Object
                                                      (
                                                          [@size] =&gt; 1
                                                          [RateInfo] =&gt; stdClass Object
                                                              (
                                                                  [@priceBreakdown] =&gt; true
                                                                  [@promo] =&gt; false
                                                                  [@rateChange] =&gt; false
                                                                  [RoomGroup] =&gt; stdClass Object
                                                                      (
                                                                          [Room] =&gt; stdClass Object
                                                                              (
                                                                                  [numberOfAdults] =&gt; 2
                                                                                  [numberOfChildren] =&gt; 0
                                                                              )
  
                                                                      )
  
                                                                  [ChargeableRateInfo] =&gt; stdClass Object
                                                                      (
                                                                          [@averageBaseRate] =&gt; 149.49
                                                                          [@averageRate] =&gt; 149.49
                                                                          [@commissionableUsdTotal] =&gt; 149.49
                                                                          [@currencyCode] =&gt; USD
                                                                          [@maxNightlyRate] =&gt; 149.49
                                                                          [@nightlyRateTotal] =&gt; 149.49
                                                                          [@surchargeTotal] =&gt; 26.92
                                                                          [@total] =&gt; 176.41
                                                                          [NightlyRatesPerRoom] =&gt; stdClass Object
                                                                              (
                                                                                  [@size] =&gt; 1
                                                                                  [NightlyRate] =&gt; stdClass Object
                                                                                      (
                                                                                          [@baseRate] =&gt; 149.49
                                                                                          [@rate] =&gt; 149.49
                                                                                          [@promo] =&gt; false
                                                                                      )
  
                                                                              )
  
                                                                          [Surcharges] =&gt; stdClass Object
                                                                              (
                                                                                  [@size] =&gt; 1
                                                                                  [Surcharge] =&gt; stdClass Object
                                                                                      (
                                                                                          [@type] =&gt; TaxAndServiceFee
                                                                                          [@amount] =&gt; 26.92
                                                                                      )
  
                                                                              )
  
                                                                      )
  
                                                                  [nonRefundable] =&gt; 
                                                                  [rateType] =&gt; MerchantStandard
                                                                  [currentAllotment] =&gt; 0
                                                              )
  
                                                      )
  
                                              )
  
                                      )
  
                              )
  
                          [2] =&gt; stdClass Object
                              (
                                  [@order] =&gt; 2
                                  [@ubsScore] =&gt; 992620
                                  [hotelId] =&gt; 110839
                                  [name] =&gt; Hotel Lawrence
                                  [address1] =&gt; 302 S Houston Street
                                  [city] =&gt; Dallas
                                  [stateProvinceCode] =&gt; TX
                                  [postalCode] =&gt; 75202
                                  [countryCode] =&gt; US
                                  [airportCode] =&gt; DFW
                                  [supplierType] =&gt; E
                                  [propertyCategory] =&gt; 1
                                  [hotelRating] =&gt; 3
                                  [confidenceRating] =&gt; 52
                                  [amenityMask] =&gt; 7831555
                                  [tripAdvisorRating] =&gt; 3
                                  [tripAdvisorReviewCount] =&gt; 223
                                  [tripAdvisorRatingUrl] =&gt; http://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/3.0-12345-4.gif
                                  [locationDescription] =&gt; Near Dallas Convention Center
                                  [shortDescription] =&gt; &lt;p&gt;&lt;b&gt;Property Location&lt;/b&gt; &lt;br /&gt;With a stay at Hotel Lawrence, you'll be centrally located in Dallas, steps from Old Red Courthouse and John F. Kennedy Memorial. This hotel is close to Dallas World
                                  [highRate] =&gt; 119
                                  [lowRate] =&gt; 107.1
                                  [rateCurrencyCode] =&gt; USD
                                  [latitude] =&gt; 32.77741
                                  [longitude] =&gt; -96.80702
                                  [proximityDistance] =&gt; 5.6781306
                                  [proximityUnit] =&gt; MI
                                  [hotelInDestination] =&gt; 1
                                  [thumbNailUrl] =&gt; /hotels/1000000/800000/794600/794528/794528_24_t.jpg
                                  [deepLink] =&gt; http://travel.ian.com/index.jsp?pageName=hotAvail&amp;cid=55505&amp;hotelID=110839&amp;mode=2&amp;numberOfRooms=1&amp;room-0-adult-total=2&amp;room-0-child-total=0&amp;arrivalMonth=8&amp;arrivalDay=4&amp;departureMonth=8&amp;departureDay=5&amp;showInfo=true&amp;locale=en_US
                                  [RoomRateDetailsList] =&gt; stdClass Object
                                      (
                                          [RoomRateDetails] =&gt; stdClass Object
                                              (
                                                  [roomTypeCode] =&gt; 4789
                                                  [rateCode] =&gt; 4789
                                                  [maxRoomOccupancy] =&gt; 2
                                                  [quotedRoomOccupancy] =&gt; 2
                                                  [minGuestAge] =&gt; 0
                                                  [roomDescription] =&gt; Standard Room, 1 Queen Bed
                                                  [propertyAvailable] =&gt; 1
                                                  [propertyRestricted] =&gt; 
                                                  [expediaPropertyId] =&gt; 794528
                                                  [RateInfos] =&gt; stdClass Object
                                                      (
                                                          [@size] =&gt; 1
                                                          [RateInfo] =&gt; stdClass Object
                                                              (
                                                                  [@priceBreakdown] =&gt; true
                                                                  [@promo] =&gt; true
                                                                  [@rateChange] =&gt; false
                                                                  [RoomGroup] =&gt; stdClass Object
                                                                      (
                                                                          [Room] =&gt; stdClass Object
                                                                              (
                                                                                  [numberOfAdults] =&gt; 2
                                                                                  [numberOfChildren] =&gt; 0
                                                                              )
  
                                                                      )
  
                                                                  [ChargeableRateInfo] =&gt; stdClass Object
                                                                      (
                                                                          [@averageBaseRate] =&gt; 119.0
                                                                          [@averageRate] =&gt; 107.1
                                                                          [@commissionableUsdTotal] =&gt; 107.1
                                                                          [@currencyCode] =&gt; USD
                                                                          [@maxNightlyRate] =&gt; 107.1
                                                                          [@nightlyRateTotal] =&gt; 107.1
                                                                          [@surchargeTotal] =&gt; 18.15
                                                                          [@total] =&gt; 125.25
                                                                          [NightlyRatesPerRoom] =&gt; stdClass Object
                                                                              (
                                                                                  [@size] =&gt; 1
                                                                                  [NightlyRate] =&gt; stdClass Object
                                                                                      (
                                                                                          [@baseRate] =&gt; 119.0
                                                                                          [@rate] =&gt; 107.1
                                                                                          [@promo] =&gt; true
                                                                                      )
  
                                                                              )
  
                                                                          [Surcharges] =&gt; stdClass Object
                                                                              (
                                                                                  [@size] =&gt; 1
                                                                                  [Surcharge] =&gt; stdClass Object
                                                                                      (
                                                                                          [@type] =&gt; TaxAndServiceFee
                                                                                          [@amount] =&gt; 18.15
                                                                                      )
  
                                                                              )
  
                                                                      )
  
                                                                  [nonRefundable] =&gt; 
                                                                  [rateType] =&gt; MerchantStandard
                                                                  [promoId] =&gt; 201883354
                                                                  [promoDescription] =&gt; Free Breakfast Included Daily
                                                                  [promoType] =&gt; Standard
                                                                  [currentAllotment] =&gt; 10
                                                              )
  
                                                      )
  
                                                  [ValueAdds] =&gt; stdClass Object
                                                      (
                                                          [@size] =&gt; 2
                                                          [ValueAdd] =&gt; Array
                                                              (
                                                                  [0] =&gt; stdClass Object
                                                                      (
                                                                          [@id] =&gt; 2
                                                                          [description] =&gt; Continental Breakfast
                                                                      )
  
                                                                  [1] =&gt; stdClass Object
                                                                      (
                                                                          [@id] =&gt; 1024
                                                                          [description] =&gt; Free High-Speed Internet
                                                                      )
  
                                                              )
  
                                                      )
  
                                              )
  
                                      )
  
                              )
  
                      )
  
              )
  
      )
  </code></pre>
  
  <p>)</p>
  
  <p>but i want specific data like hotel name,address...etc
  i mean <code>[name] =&gt; Hotel Lawrence</code> etc when i echo it.</p>
  
  <p>for that i am using some combinations like</p>
  
  <pre><code>echo $response['hotels']-&gt;Hotellist-&gt;HotelSummary[0]-&gt;name;
  </code></pre>
  
  <p>but getting parse errors what should i do to extract particular data?? please help</p>