PageRenderTime 42ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/_unittest/loop.empty.php

https://github.com/dadyday/template
PHP | 21 lines | 16 code | 5 blank | 0 comment | 0 complexity | 3ea7a5f04b1ecd099d4ec905a75afde7 MD5 | raw file
  1. <?php
  2. $aFile['index'] = '
  3. (#for:$n,1,3;#empty;-#end;$n;#end;)
  4. (#for:$n,1,0;#empty;-#end;$n;#end;)
  5. (#each:$a1,$n;$n;#empty;-#end;#end;)
  6. (#each:$a2,$n;#empty;-#end;$n;#end;)
  7. ';
  8. $result = '
  9. (123)
  10. (-)
  11. (123)
  12. (-)
  13. ';
  14. $a1 = array(1,2,3);
  15. $a2 = array();
  16. ?>