标签: php loops twig
我想在树枝循环中显示我的数组值。这是我的数组结构:
array(4) { ["image"] => NULL ["title"] => string(8) "My title" ["body"] => string(7) "My text" ["path"] => string(8) "/myurl/3" }
我尝试了这个树枝循环,但没有运气:
{% for my in MyArray %} <h3>{{ my.title }}</h3> {% endfor %}