warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
strlen
warning
This function starts with a lowercase letter.
Description
Get the length of a string.
Name | Description |
---|---|
const string[] | The string to get the length of. |
Returns
The length of the string as an integer.
Examples
new stringLength = strlen("This is an example string."); // stringLength is now set to 26
Related Functions
- strcmp: Compare two strings to check if they are the same.
- strfind: Search for a string in another string.
- strins: Insert text into a string.
- strmid: Extract part of a string into another string.
- strpack: Pack a string into a destination string.
- strval: Convert a string into an integer.
- strcat: Concatenate two strings into a destination reference.
- strdel: Delete part of a string.