傾銷會話後,我得到下面的結果。任何人都可以告訴我如何獲得數組(2)中的「product_id」和「info」的值;獲取數組值
array(3) {
["DYN_outskin"]=> string(3) "ten"
["DYN_inskin"]=> string(3) "one"
["cart"]=> array(1) {
["2000_facebook"]=> array(2) {
["product_id"]=> string(13) "2000_facebook"
["info"]=> string(7) "nur1952"
}
}
}
路徑陣列 - > [2000_facebook] - > [車] - > [PRODUCT_ID]然後$改編[2000_facebook] [cart] [product_id] – 2013-02-18 18:28:37
@ gd1:我得到了這個結果,它是session的print_r ======================= Array([DYN_outskin] => ten [DYN_inskin] => one [cart] => Array([2000_facebook] => Array([product_id] => 2000_facebook [info] => nur1952)[web_traffic] => Array([product_id] => web_traffic [info] = > fbmuseum.com))) – Nur 2013-02-18 18:30:38
http://php.net/arrays – knittl 2013-02-18 18:30:52