Push item to associative array in PHP

后端 未结 12 1417
野趣味
野趣味 2020-12-04 22:47

I\'ve been trying to push an item to an associative array like this:

$new_input[\'name\'] = array(
    \'type\' => \'text\', 
    \'label\' => \'First          


        
12条回答
  •  眼角桃花
    2020-12-04 23:43

    $new_input = array('type' => 'text', 'label' => 'First name', 'show' => true, 'required' => true);
    $options['inputs']['name'] = $new_input;
    

提交回复
热议问题