[Previous] [Contents] [Next]


Length of a string


The length property of a string is determined with the strlen( ) function, which returns the number of eight-bit characters in the subject string:

integer strlen(string subject)

Consider an example that prints 16:

print strlen("This is a String");  // prints 16


[Previous] [Contents] [Next]