mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
Add display information to slice example
This commit is contained in:
@@ -32,7 +32,7 @@ As syntactic sugar, you can also use the ``[]`` notation:
|
|||||||
{# ... #}
|
{# ... #}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{{ '12345'[1:2] }}
|
{{ '12345'[1:2] }} {# will display "23" #}
|
||||||
|
|
||||||
{# you can omit the first argument -- which is the same as 0 #}
|
{# you can omit the first argument -- which is the same as 0 #}
|
||||||
{{ '12345'[:2] }} {# will display "12" #}
|
{{ '12345'[:2] }} {# will display "12" #}
|
||||||
|
|||||||
Reference in New Issue
Block a user