mbsubstring()

Availability

Flash Lite 1.0.

Usage

mbsubstring(value, index, count)

Operands

value The multibyte string from which to extract a new multibyte string.

index The number of the first character to extract.

count The number of characters to include in the extracted string, not including the index character.

Description

String function; extracts a new multibyte character string from a multibyte character string.

Example

The following example extracts a new multibyte character string from the string contained in the myString variable:

myString = mbchr(36) add mbchr(49) add mbchr(50) add mbchr(48);
trace (mbsubstring(myString, 0, 2));                                // Output: $1

See also

mbchr()