title: Loop multidimensional array in twig
body: <p>How do I loop multidimensional array in twig.</p>
  
  <p><a href="https://i.stack.imgur.com/zYayO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zYayO.png" alt="enter image description here"></a></p>
  
  <p>What I've tried is</p>
  
  <pre><code>{% for key, record in records %}
  
      {% for key1, record1 in record %}
  
           {{ key1 }}
  
       {% endfor %}
  
  {% endfor %}
  </code></pre>
  
  <p>But I only get the index of array like so </p>
  
  <ul>
  <li>0 </li>
  <li>0</li>
  <li>0</li>
  <li>0</li>
  <li>1</li>
  <li>0 </li>
  <li>0 </li>
  <li>1</li>
  </ul>
  
  <p>What I want is to get the value of <code>MoneyChanger</code> and <code>AddTransaction</code> Array. Like for example</p>
  
  <ul>
  <li>id</li>
  <li>name</li>
  <li>currency</li>
  <li>amount</li>
  <li>pieces</li>
  </ul>