Hello i have read all related topics and found some solution about how to get loop but and certain value but still can not get value from subarray [tracking] from array below:
[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 ) ) ) )
I have used standart loop to get value [open] = 1, but got
Undefined index: open error message from debugger. Yes i got undefined index because i cannot get tracking value as subarray. It always asked in loop no matter of the type for i=1;i=k;i++ or foreach $array as $key=>$value.