stdclass에서 @ 기호로 객체에 액세스하는 방법 curl : $ response-> HotelListResponse-> customerSessionId (this works)와 같은 PHP에서 이것을 시도했지만 다음과 같이하면 : $ response-> HotelListResponse-> HotelList -> @ activePropertyCount 반환 오류 또는 null 문자열PHP에서 STDCLASS 객체에 액세스
stdClass Object
[HotelListResponse] => stdClass Object
(
[customerSessionId] => 0ABAA84E-3DC0-4913-E0C2-5C6541908000
[numberOfRoomsRequested] => 1
[moreResultsAvailable] => 1
[cacheKey] => 6b03dc04:13e0c5c6541:-7ffd
[cacheLocation] => 10.186.168.78:7302
[cachedSupplierResponse] => stdClass Object
(
[@matchedLocale] => true
[@matchedCurrency] => true
[@tpidUsed] => 5001
[@otherOverheadTime] => 2
[@candidatePreptime] => 13
[@supplierResponseTime] => 680
[@supplierResponseNum] => 25
[@supplierRequestNum] => 207
[@cachedTime] => 0
[@supplierCacheTolerance] => NOT_SUPPORTED
)
[HotelList] => stdClass Object
(
[@activePropertyCount] => 224
[@size] => 25
[HotelSummary] => Array
(
[0] => stdClass Object
(
[@ubsScore] => 6144465
[@order] => 0
'$ 응답 -> HotelListResponse-> HotelList하는 데 도움이
희망 -> { '를 @ activePropertyCount '}' –