Это мой код для создания массива
$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",
}
]
}
}