- Optimized forloop.* variables
[haanga.git] / tests / tmp / ce9ab0a21d381cdfd181f6d4b9c01a720d4c7320.php
blob82b7cadfafb7770577aebe4f73621ad0cbb9d1cf
1 <?php
2 /* Generated from ./assert_templates/cycle.tpl */
3 function haanga_ce9ab0a21d381cdfd181f6d4b9c01a720d4c7320($vars, $return=FALSE, $blocks=array())
5 extract($vars);
6 $buffer1 = "";
7 foreach ($array as $user) {
8 $buffer1 .= "\n ";
9 $def_cycle_0 = Array("uno", "dos", "tres");
10 $index_0 = (isset($index_0) == FALSE ? 0 : ($index_0 + 1) % count($def_cycle_0));
11 $buffer1 .= $def_cycle_0[$index_0]."\n";
13 $buffer1 .= "\n-----------------------------------------------\n";
14 $def_cycle_1 = Array("uno", "dos", "tres");
15 $buffer1 .= "\n";
16 $index_1 = (isset($index_1) == FALSE ? 0 : ($index_1 + 1) % count($def_cycle_1));
17 $buffer1 .= $def_cycle_1[$index_1]."\n";
18 $index_1 = (isset($index_1) == FALSE ? 0 : ($index_1 + 1) % count($def_cycle_1));
19 $buffer1 .= $def_cycle_1[$index_1]."\n";
20 $index_1 = (isset($index_1) == FALSE ? 0 : ($index_1 + 1) % count($def_cycle_1));
21 $buffer1 .= $def_cycle_1[$index_1]."\n";
22 $index_1 = (isset($index_1) == FALSE ? 0 : ($index_1 + 1) % count($def_cycle_1));
23 $buffer1 .= $def_cycle_1[$index_1]."\n";
24 if ($return == TRUE) {
25 return $buffer1;
26 } else {
27 echo $buffer1;