title: Multidimensional array Twig
body: <p>I have a problem, in Controller I have a multidimensional array, but I don't know how many dimensional this array is. It is dynamically and determined by database, so can I put it to twig in any way?</p>
  
  <p>When I'm using function dump in twig, it displays:</p>
  
  <pre><code>array(5) { 
    [0]=&gt; int(50) 
    [1]=&gt; int(51) 
    [2]=&gt; int(52) 
    [51]=&gt; array(2) { 
      [0]=&gt; int(55) 
      [55]=&gt; array(1) { 
        [0]=&gt; int(56) 
      } 
    } 
    [52]=&gt; array(2) { 
      [0]=&gt; int(53) 
      [1]=&gt; int(54) 
    } 
  } 
  </code></pre>