title: Multidimension Array PHP + issue on how to create it
body: <p>I want the following array : </p>
  
  <pre><code>$array = array(
  'test1' =&gt; array(
      'cat1' =&gt; 'val1',
      'cat2' =&gt; 'val2',
      'cat3' =&gt; 'val3'
      ),
  'test2' =&gt; array(
      'cat1' =&gt; 'val1',
      'cat2' =&gt; 'val2',
      'cat3' =&gt; 'val3'
      )
  );
  </code></pre>
  
  <p>But I need to create it in 2 times.</p>
  
  <p>First, I create the first dimension :</p>
  
  <pre><code>$array[] = 'test1';
  $array[] = 'test2';
  </code></pre>
  
  <p>And then I don't know how to add an array to each element ('test1', 'test2) to get the result like above.</p>
  
  <p>Thanks for your help!</p>