开发者社区 问答 正文

将项目推送到PHP中的关联数组

我一直在尝试将项目推到这样的关联数组中:

$new_input['name'] = array( 'type' => 'text', 'label' => 'First name', 'show' => true, 'required' => true ); array_push($options['inputs'], $new_input); 但是,不是在“名称”中输入数字。还有另一种方法吗?

展开
收起
保持可爱mmm 2020-02-08 14:28:48 397 分享 版权
1 条回答
写回答
取消 提交回答
  • $options['inputs']['name'] = $new_input['name'];

    2020-02-08 14:28:57
    赞同 展开评论
问答分类:
PHP
问答地址: