ez.no / exponential / documentation / reference / template operators / strings / count_chars
$input_string|count_chars()
integer revealing string length.
This operator simply counts and returns the number of characters (all of them, whitespace included) that are found within the inputted string. It basically returns the actual length of the string.
{"Testing 1 2 3"|count_chars}
returns 13.
{"Testing"|count_chars}
returns 7.
Comments