Adding mb_strlen

This commit is contained in:
Thomas Landauer
2023-04-11 12:35:17 +02:00
committed by GitHub
parent 78c18ad58e
commit 19be50ff01
+4
View File
@@ -12,8 +12,12 @@ it will return the length of the string provided by that method.
For objects that implement the ``Traversable`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
For strings, `mb_strlen()`_ is used.
.. code-block:: twig
{% if users|length > 10 %}
...
{% endif %}
.. _mb_strlen(): https://www.php.net/manual/function.mb-strlen.php