string.len

Return the length of a string

Prototype

n = string.len (str)

Description

Returns the length of the string, including any imbedded zero (0x00) bytes.

string.len ("hi there") --> 8
You can also use #string to find its length.

#"hi there" --> 8

Lua functions

Topics