string.insert()

Inserts a substring in a string after a specified character position. If position = 0, prefixes the substring to the string.

string.insert( string, position )

Returns: String

Argument Description
string
string, required

String into which to insert substring.

position
number, required

position in string after which to insert substring.

Examples

insertTest = "Lucee developer";
	writeoutput(insertTest.insert("core ",6));

See also