Print an array in Twig
<p>I Have a table with this columns:</p>

<pre><code>login ,couleur1,parties,gagnees
</code></pre>

<p>I would like to print an array exactly like this one: </p>

<blockquote>
  <p><img src="https://i.stack.imgur.com/c2rgJ.png" alt="enter image description here"></p>
</blockquote>

<p>In Silex I get all data in an array</p>

<pre><code>$app-&gt;get('/userlist', function(Application $app) {

$recup= $app['db']-&gt;executeQuery('SELECT * FROM users');
$results = $recup-&gt;fetchAll();

return $app['twig']-&gt;render('example.twig', array('users' =&gt; $results));
});

$app-&gt;run();
[enter image description here][2]?&gt;
</code></pre>

<p>In Twig I tried to align them, but I can't get it like in the photo.</p>

<pre><code> {% for row in users %}
    &lt;ul style="list-style: none;"&gt;
        &lt;li style="float:left; margin-right:30px" &gt;{{ row.login }}&lt;/li&gt;
        &lt;li style="float:left; margin-right:30px"&gt;{{row.parties}}&lt;/li&gt;
        &lt;li style="float:left; margin-right:30px"&gt;{{row.couleur1}}&lt;/li&gt;
        &lt;li style="float:both"&gt;{{row.couleur2}}&lt;/li&gt;
    &lt;/ul&gt;
{% endfor %}
</code></pre>

<p>I would make that without separating CSS and Twig.</p>