title: How to construct a nested associative array
body: <p>I am trying to construct a deeply nested associative array but i don't know what the rules are in constructing one.I have this theoritical array:</p>
  
  <pre><code>-one
  -two
  -three
  -four
      -one
      -two
      -three
      -four
  -five
  -six
  -seven
  -eight
  -nine
      -one
      -two            
      -three 
              -one
              -two
              -three
              -four
              -five
              -six
  </code></pre>
  
  <p>and i made this attempt at representing that as a php associative array;</p>
  
  <pre><code>$associative = array(
  'one' =&gt; 'one-1',
  'two' =&gt; 'two-2',
  'three' =&gt; 'three-3',
  'four' =&gt; 'four-4'
  (
      'one' =&gt; 'one-four-1',
      'two' =&gt; 'two-four-2',
      'three' =&gt; 'three-four-3',
      'four' =&gt; 'four-four-4'
  )
  'five' =&gt; 'five-5',
  'six' =&gt; 'six-6',
  'seven' =&gt; 'seven-7',
  'eight' =&gt; 'eight-8',
  'nine' =&gt; 'nine-9'
  (
      'one' =&gt; 'one-nine-1',
      'two' =&gt; 'two-nine-2',          
      'three' =&gt; 'three-nine-3' 
  (   
          'one' =&gt; 'one-nine-three-1',
          'two' =&gt; 'two-nine-three-2',
          'three' =&gt; 'three-nine-three-3',
          'four' =&gt; 'four-nine-three-4',
          'five' =&gt; 'five-nine-three-5',
          'six' =&gt; 'six-nine-three-6'
  ))
  );
  $keys = array_values($associative);
  echo $keys[0];
  </code></pre>
  
  <p>When i try executing the php snippet i get this error;</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '(', expecting ')' in
    C:\wamp\www\array.php on line 7</p>
  </blockquote>
  
  <p>So my question is,what is the correct way of writing such an array and what rule should i follow when i wish to add more children?.</p>
  
  <p>Note:In my theoritical array,four has four children,nine has three children and three has six children.Anyway,i hope the idea of having children is understood in my dummy array.</p>