Insert

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

Insert( substring, string, position )

Returns: String

Argument Description
substring
string, required

String to insert.

string
string, required

String into which to insert substring.

position
number, required

position in string after which to insert substring.

Examples

str="I love ";
	writeDump(insert("lucee",str,7));//I love lucee
	//Member function 
	st="Example";
	writeDump(st.insert(" code",7));//Example code

See also