Fabien Potencier 34b03285ad merged branch beryllium/patch-1 (PR #1032)
This PR was merged into the master branch.

Discussion
----------

Adding a section about the slice filter to doc/tags/for.rst

This code example shows how to loop over a subset of values in order to implement one common use-case of "break" in PHP. I decided to use the "full" notation of slice rather than the sugared version (that example would just be "for user in users[:10]")

Commits
-------

202641a Adding link to slice filter per Stof's suggestion
8ebbaaa Adding a section about the slice filter
2013-03-25 08:42:48 +01:00
2013-03-10 02:06:44 +00:00
2013-03-10 02:06:44 +00:00
2012-11-18 21:42:00 +01:00
2013-03-10 02:06:44 +00:00
2012-11-14 14:33:03 +01:00
2013-01-04 17:54:54 +01:00
2012-04-23 23:34:16 +02:00

Twig, the flexible, fast, and secure template language for PHP

Build Status

Twig is a template language for PHP, released under the new BSD license (code and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.

More Information

Read the documentation for more information.

Languages
PHP 99.9%