title: Illegal string offset in foreach
body: <p>I'm trying to loop in the second array with this code</p>
  
  <pre><code>        &lt;?php 
          foreach ($categories[1] as $category_cat) { ?&gt;
              &lt;li&gt;&lt;a href="&lt;?php echo $category_cat['href']; ?&gt;"&gt;&lt;span&gt;&lt;?php echo $category_cat['name']; ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?php } ?&gt;
  </code></pre>
  
  <p>And I get the "Illegal string offset in..." error. I know that addind the [1] the the foreach might be the error but how I could make the loop in the second array then ?</p>
  
  <p>Array content</p>
  
  <pre><code>array (size=2)
    0 =&gt; 
      array (size=4)
        'name' =&gt; string 'Brands' (length=7)
        'children' =&gt; 
          array (size=12)
            0 =&gt; 
              array (size=3)
                ...
            1 =&gt; 
              array (size=3)
                ...
            2 =&gt; 
              array (size=3)
                ...
            3 =&gt; 
              array (size=3)
                ...
            4 =&gt; 
              array (size=3)
                ...
            5 =&gt; 
              array (size=3)
                ...
            6 =&gt; 
              array (size=3)
                ...
            7 =&gt; 
              array (size=3)
                ...
            8 =&gt; 
              array (size=3)
                ...
            9 =&gt; 
              array (size=3)
                ...
            10 =&gt; 
              array (size=3)
                ...
            11 =&gt; 
              array (size=3)
                ...
        'column' =&gt; string '1' (length=1)
        'href' =&gt; string 'url here' (length=78)
    1 =&gt; 
      array (size=4)
        'name' =&gt; string 'Catégories' (length=11)
        'children' =&gt; 
          array (size=7)
            0 =&gt; 
              array (size=3)
                ...
            1 =&gt; 
              array (size=3)
                ...
  </code></pre>