mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-29 13:59:28 +01: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
10 lines
178 B
Markdown
10 lines
178 B
Markdown
# strlen
|
|
|
|
Returns the length (number of characters) in the given string, including spaces.
|
|
|
|
## Basic usage
|
|
```smarty
|
|
{"Smarty"|strlen} # renders: 6
|
|
{156|strlen} # renders: 3
|
|
```
|