不确定数据是否发布或程序问题,有时是在程序之下 显示错误消息:
PHP警告:"非法字符串偏移' @ id'在test.php" PHP警告:"非法字符串偏移'订单'在test.php" ...
....
$ret1=curlDest($transaction_url);
$retval = $ret1["Response"]["TransactionList"]["@TotalCount"];
foreach ($ret1["Response"]["TransactionList"]["Transaction"] as $v)
{
$transaction_id = $v["@Id"];
$order_id = array();
$orderid_query_string = '';
foreach ($v["Order"] as $order)
{...
}
@ ret1的数据低于
Array
<
[@Id] => 120852760
[Order] = > Array
<
[@Id] => YM152222
>
>
答案 0 :(得分:0)
错误说
illegal string offset '@id'
您应该使用大写的@Id
代替。