string_size()

Returns the size, in bytes, of the input string.

Syntax

string_size(source)

Arguments

  • source: The source string that will be measured for string size.

Returns

Returns the length, in bytes, of the input string.

Examples

print size = string_size("hello")
size
5
print size = string_size("⒦⒰⒮⒯⒪")
size
15