我在使用 array_push 时遇到问题。它正在显示"Parse error: syntax error, unexpected T_DOUBLE_ARROW"
变量 $vars 是贝宝的关联数组。
array_push($vars,
'item_number'.$num => $id,
'item_name'.$num => $cart_item->name,
'amount_'.$num => $cart_item->discount_price,
'quantity_'.$num => $value);
$vars = array (
'cmd' => '_cart',
'charset' => 'utf-8',
'upload' => '1',
'currency_code' => 'HKD',
'amount' => $_SESSION['total'],
'custom' => $user_data->id)