1
array (
'_attributes' =>
array (
'name' => 'Rothco Product API - Variations',
),
'item_variations' =>
array (
0 =>
stdclass::__set_state(array(
'item_variation_id' => 2,
'item_index' => 3146,
'rothco_item_no' => '10002',
'upc' => '023063601212',
'inventory' => 99,
'created_date' => '2014-11-28 10:06:45.000',
'weight' => '.4000',
'image_filename' => '10002-A.jpg',
'catalog_page_no' => 183,
'msrp' => '20.9900',
'map' => '.0000',
'diameter' => '',
'price' => '8.100000',
'case_price' => NULL,
'case_quantity' => NULL,
'statuses' => '',
)),
),
)
이것은 내 배열 $ list입니다.이 배열에 액세스하는 방법
나는이 배열에서 'item_variations'값에 액세스하려면,
하지만 난 당신이 단지 item_variations
다음
해보십시오 $ : 당신이 당신의 샘플 데이터에서
created_date
경우 GET 값을 즉하고자하는 경우 배열의 조합을 가지고 서로 다른 액세스를 필요 있도록 객체 겼고, 더 까다로운 목록 [ '_ 속성'] [ 'item_variations']. –무엇이 문제입니까? https://3v4l.org/jLLMR – hassan
이와 비슷한 것; $ list [ 'item_variations'] [0] -> item_variation_id –