I looked in google, but I didn’t understand how to write in twig:

for($i=0;$i<4;$i++){ echo 'hi'; } 

    1 answer 1

    first you need to look in the official documentation:

     {% for i in 0..3 %} hi {% endfor %}