Files
smarty/docs/designers/language-modifiers/language-modifier-strlen.md
Simon Wisselink 41d80b99ac Implemented support for substr, implode and json_encode as modifiers. (#940)
* Implemented support for substr, implode and json_encode as modifiers. Fixes #939
* Added split and join in favor of explode and implode modifiers.
* Documented all available modifiers
2024-02-26 14:35:19 +01:00

178 B

strlen

Returns the length (number of characters) in the given string, including spaces.

Basic usage

{"Smarty"|strlen} # renders: 6
{156|strlen} # renders: 3