mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
Fix length filter doc
This commit is contained in:
@@ -14,7 +14,7 @@ return value of the ``count()`` method.
|
|||||||
For objects that implement the ``__toString()`` magic method (and not ``Countable``),
|
For objects that implement the ``__toString()`` magic method (and not ``Countable``),
|
||||||
it will return the length of the string provided by that method.
|
it will return the length of the string provided by that method.
|
||||||
|
|
||||||
For objects that implement the ``IteratorAggregate`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
|
For objects that implement the ``Traversable`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user