PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/inner_variables.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/inner_variables.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/inner_variables.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 294 bytes
 

Contents

Class file image Download
--TEST-- "for" tag does not reset inner variables --TEMPLATE-- {% for i in 1..2 %} {% for j in 0..2 %} {{k}}{% set k = k+1 %} {{ loop.parent.loop.index }} {% endfor %} {% endfor %} --DATA-- return array('k' => 0) --EXPECT-- 0 1 1 1 2 1 3 2 4 2 5 2