子陣值你好,我已閱讀所有相關主題,發現有關如何獲取循環,但並一定價值的一些解決方案,但仍無法從陣列下方得到子陣[追蹤]值:獲得來自陣列
[26] =>
Array ([id] => ab94b21221379be8231250962f51073d
[sender] => [email protected]
[total_size] => 776
[sender_ip] => 173.212.205.208 [smtp_answer_code] => 250 [smtp_answer_code_explain] => Delivered [smtp_answer_subcode] => [smtp_answer_data] => [email protected] H=gmail-smtp-in.l.google.com [173.194.69.26] X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=yes K C="250 2.0.0 OK z58si11170265edc.200 - gsmtp"
[used_ip] => 78.41.200.159
[recipient] => [email protected]
[subject] => Mail subject
[send_date] => 2017-06-26 09:49:48
[tracking] =>
Array (
[click] => 0
[open] => 1
[client_info] =>
Array ([0] => Array ([browser] => Firefox 11.0viaggpht.comGoo[os] => Windows [ip] => 11.111.93.76 [country] => United States [action_date] => 2017-03-27 07:59:46))))
我使用了standart循環來獲取值[open] = 1,但從調試器得到了 Undefined index: open
錯誤消息。是的,我得到了未定義的索引,因爲我無法獲得跟蹤值作爲子陣列。它始終在循環中詢問,無論i = 1; i = k; i ++或foreach $ array的類型爲$ key => $ value。
爲編程添加標籤lang – RealCheeseLord