嗨我有一个会话$ _SESSION ['pdf_quote']当我查看会话中的所有值时我得到了正确的所有结果但我有一个值显示$_SESSION['product_arr']
的值是'数组'我有试图打开那个数组的值,但我得到的只是一个空白页......
foreach($_SESSION['pdf_quote']['product_arr'] as $key=>$value)
{
// and print out the values
echo 'The value of $_SESSION['."'".$key."'".'] is '."'".$value."'".' <br />';
}
我已经尝试了一切来尝试访问数组中的数据,但对于我的生活,我无法弄明白。
print_r显示
Array (
[FoodDelivery] => Array (
[FDelivery_Order] => Array ( )
[FDelivery_Captcha] => EAHVZS)
[pdf_quote] => Array (
[id] => 42
[location_id] => 3
[type] => pickup
[status] => pending
[payment_method] => none
[is_paid] => 0
[txn_id] =>
[processed_on] =>
[price_subtotal] => 6300.00
[price_delivery] => 0.00
[price_total] => 6300.00
[voucher_code] =>
[created] => 2013-10-15 08:48:16
[p_dt] => 2013-10-19 08:00:00
[d_address_1] =>
[d_address_2] =>
[d_country_id] =>
[d_state] =>
[d_city] =>
[d_zip] =>
[d_notes] =>
[d_dt] =>
[c_name] => ewqe
[c_email] => weqw@ewewe.com
[c_phone] => 3232323
[c_address_1] => ferwewe
[c_address_2] =>
[c_notes] =>
[c_country] =>
[c_state] => www
[c_city] =>
[c_zip] => 2122
[cc_type] =>
[cc_num] =>
[cc_code] =>
[cc_exp] =>
[product_arr] => Array (
[0] => Array (
[extra_arr] => Array ( ) ) ) ) )
我试图循环数组但没有成功我不知道我需要使用哪些代码才能看到存储在product_arr
数组中的变量。