这是我创建数组的代码
$insured_data['QuotaDtls']['Riskdtls'] = [
"InsuredName"=> "Testone",
];
$insured_data['Authenticate'] = [
'WACode' => '0000',
];
$insured_data['QuotaDtls'] = [
'ProductType'=> 'Individual'
];
Output:
{
"Authenticate": {
"WACode": "0000",
},
"QuotaDtls": {
"ProductType": "Individual",
"Riskdtls": {
"InsuredName": "Testone",
}
}
}
我想对此数组进行一些修改,尝试了许多不同的方法但无法做到。这是在代码点火器中完成的,请帮忙。
{
"Authenticate": {
"WACode": "0000"
},
"QuotaDtls": {
"ProductType": "Individual",
"Riskdtls": [
{
"InsuredName": "Testone",
}
]
}
}
元芳怎么了