2Hi.Biz
Trang chủ
|
TWIG
|
Xtscript
|
Templates
|
Xtgem
Functions Xtscript
AiChat.Wap.Sh
strlen
Trả lại chiều dài của một chuỗi
[...] = optional ... = your value[var $... = ]call strlen $val=...
Code ví dụ:
<!--parser:xtscript-->
var $string = how long is a piece of string
var $output = call strlen $val=$string
print it is $output characters long
<!--/parser:xtscript-->
<!--parser:xtscript--> var $string = how long is a piece of string var $output = call strlen $val=$string print it is $output characters long <!--/parser:xtscript-->
Code đã chạy:
it is 29 characters long