我一直试图解决这个问题,但不断与代码示例混淆。
如何在下面的数组中添加单个元素。
$datafields = array(
"helpdesk_ticket" => array(
"subject" => $subject,
"description" => $notes,
"email" => "joe@email.net",
"priority" => $priority2,
"ticket_type" => $type,
"viewed" => $viewed
)
);
例如,我想添加:
"status" => $status
答案 0 :(得分:3)