2013-06-28 twig で配列の数をカウントする php ちょっと検索しただけでは分からなかったので。 ほとんど参考サイトのコピペですが。 {% if my_list|length > 10 %} ... {% endif %} 参考 Code Fails: Twig template: find the length of an array