How do I increment(add more values) to an array with key value pairs in a loop.
$field['choices'] = array(
'custom' => 'My Custom Choice'
);
Let's says I want to add three more choices from another array?
Output I want to achieve:
$field['choices'] = array(
'custom1' => 'My Custom Choice1'
'custom2' => 'My Custom Choice2'
'custom3' => 'My Custom Choice3'
'custom4' => 'My Custom Choice4'
);
custom, but where is that in the result? You said you wanted to add 3 elements, but instead you removed 1 and added 4.