[英]Array results are not displayed when I am accessing the array,How can I access specific field values in this array
Array ( [0] =>
Array (
[Bounces] => 1
[Complaints] => 0
[DeliveryAttempts] => 405
[Rejects] => 0
[Timestamp] => 2014-11-07T11:47:00Z )
[1] => etc etc
// Multiple array values are here
);
Its a simple multidimensional array. 它是一个简单的多维数组。
Just do this.. 就是这样
foreach($yourArray as $val){
foreach($val as $v){
echo $v['Bounces']."<br>";
echo $v['Complaints']."<br>"; // etc etc
}
}
Or if you want to just get values directly without looping 或者,如果您只想直接获取值而不循环
$yourArray[0]['Complaints']; // Complaints attribute of 1st array entry
$yourArray[1]['Bounces']; // Bounce attribute of 2nd array entry
$yourArray[4]['Rejects']; //Rejects attribute of 5th array entry
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.