mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-07 01:30:58 +02:00
* 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
178 B
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