Push item to associative array in PHP
<p>I've been trying to push an item to an associative array like this:</p>

<pre><code>        $new_input['name']=array('type' =&gt; 'text', 'label' =&gt; 'First name', 'show' =&gt; true, 'required' =&gt; true);
       array_push($options['inputs'], $new_input);
</code></pre>

<p>However, instead of 'name' as the key in adds a number. Is there another way to do it?</p>
