Twig accessing array values using variables
<pre><code>{% set key = 'something' %}
</code></pre>

<p>My <code>array</code> has key something, I and can it access <code>array['something']</code>, but when I try to use variable in key like:</p>

<pre><code>array[key]
</code></pre>

<p>I'm getting error that array key not exist. So question is how to access array keys using variables.</p>