0
我有我返回JSON格式結果一些API,我成功地轉換成多維數組。獲取和顯示值多維數組PHP
Array
(
[status] => success
[cdr] => Array
(
[0] => Array
(
[date] => 2017-04-01 05:14:00
[callerid] => "ABC" <61344341227>
[destination] => 1604535320207
[description] => ABC1
[account] => ABC1
[disposition] => ANSWERED
[duration] => 10:57:57
[seconds] => 437
[rate] => 0.00200000
[total] => 0.06480000
[uniqueid] => 105943343
)
[1] => Array
(
[date] => 2017-04-11 05:10:00
[callerid] => "XYZ" <61343241227>
[destination] => 16045353250207
[description] => XYZ1
[account] => XYZ1
[disposition] => ANSWERED
[duration] => 13:57:57
[seconds] => 447
[rate] => 0.01100000
[total] => 0.06411000
[uniqueid] => 105911143
)
)
)
請幫助我獲取行/列中的數據。
我寫了下面的代碼,但它說未定義,抵消....
foreach($curl_jason as $key => $value)
{
echo $key;
echo $value['callerid'];
}
行和列,你的意思是一個HTML表? – Thakkie