我使用的 API 向我发送了一个对象/数组(不确定)。这是我使用回来的信息print_out($arr)
:
Array
(
[0] => Array
(
[callID] => 40
[PairCallLegId] =>
[CallsCount] => 4
[LocalName] => 151204
[RemoteName] => 15740
[type] => 1
[isOut] => 0
[FirstName] => Boris
[lastName] => Ostrovsky
[AvgMos] => 3.7432666239999963
[AvgQoe] =>
[AvgPL] =>
[AvgJitter] =>
[AvgVideoQP] =>
[AvgBDW] => 1200
[AvgFrameRate] =>
[AvgTotalPkt] => 102433.80945757998
[AvgTotalBytes] =>
)
)
我试图达到“CallsCount”中的值(应该是 4)
我尝试使用
$arr[0]["CallsCount"]
and
$arr["0"]["CallsCount"]
甚至
$arr[0]->CallsCount
没有工作。我Internal Server Error (500)
每次都得到。
我应该怎么办?