子阵值你好,我已阅读所有相关主题,发现有关如何获取循环,但并一定价值的一些解决方案,但仍无法从阵列下方得到子阵[追踪]值:获得来自阵列
[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