• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Template Syntax: Calculate string length possible?

#1
is there a helper, a tag or a simple trick to calculate the length of a given string?

i tried:
Code:
{xen:helper length, $variable}
{xen:string length, $variable}
{$variable.length}
but nothing worked.
I also couldn't find anything in /library/XenForo/Helper/String.php

any ideas?