title: How insert associative array inside another array? PHP
body: <p>Why I can't insert an associative array inside another array? How can I do that? [PHP]</p>
  <p>I try get somenthing like this:</p>
  <pre><code>    [0] =&gt; ['name' =&gt; 'namedperson' , 'type' =&gt; 'text' ,'id'=&gt;'ahushaus29293' ]  
      [1] =&gt; [...] 
      ...
  </code></pre>
  <p>Example:</p>
  <pre><code>public function getArrayWithCustomFields($boardId, $client){
      $customFields = $client-&gt;getBoardCustomFields($boardId);
      foreach($customFields as $customField){
          array_push($array_custom_fields, array('name' =&gt; $customField-&gt;name, 'type' =&gt; $customField-&gt;type, 'id' =&gt; $customField-&gt;id));
      }
      return $array_custom_fields;
  }
  </code></pre>