跳至内容

strlen

返回给定字符串中的长度(字符数),包括空格。

基本用法

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