2
osCommerce의 shoppingCart 객체에서 값을 추출하거나 가져 오는 방법은 무엇입니까? 나는 그래서 아래 얻기 위해 현재의 세션을 인쇄 홈 페이지에서 장바구니 내용을 표시하려면이에서osCommerce shoppingCart 객체에서 장바구니 내용 검색
shoppingCart Object
(
[contents] => Array
(
[32] => Array
(
[qty] => 1
)
[26] => Array
(
[qty] => 2
)
)
[total] => 2960
[weight] => 0
[cartID] => 29022
[content_type] =>
)
내가 contents
배열에서 값을 검색합니다. 예 : 32 qty, 26 qty 및 total이지만, "shoppingCart Object"를 사용하기 때문에 어떻게해야할지 모르겠다.
가능한 중복 (http://stackoverflow.com/questions/3122793/get-specific-value-from [PHP의 객체에서 특정 값을 받기] -object-in-php) – random