1 回答
TA贡献1829条经验 获得超7个赞
单独制作数组,然后将其添加到您的数组中。
$tmp = [];
for ($i=0; $i < sizeof($arrayAliasNumbers); $i++) {
$tmp[] = [
"cc" => $arrayAliasNumbers[$i]["cc"],
"ac" => $arrayAliasNumbers[$i]["ac"],
"sn" => $arrayAliasNumbers[$i]["sn"]
];
}
$dataArray = array(
"customer_id" => $subscriberCustomerId,
"email" => $subscriberEmail,
"username" => $subscriberComRegNum,
"external_id" => $subscriberComRegNum,
"primary_number" => array(
"cc" => $subscriberPrimaryNumber["cc"],
"ac" => $subscriberPrimaryNumber["ac"],
"sn" => $subscriberPrimaryNumber["sn"]
),
"alias_numbers" => $tmp, // <- added here
"domain_id" => $subscriberDomainId,
"administrative" => $subscriberAdministrative,
"status" => $subscriberStatus
);
- 1 回答
- 0 关注
- 100 浏览
添加回答
举报