From 19be50ff01b5acd85d810df1aaefd7300de92ce9 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Tue, 11 Apr 2023 12:35:17 +0200 Subject: [PATCH] Adding mb_strlen --- doc/filters/length.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/filters/length.rst b/doc/filters/length.rst index d36712233..a9dfae423 100644 --- a/doc/filters/length.rst +++ b/doc/filters/length.rst @@ -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