Lucee object methods reference

Object Method 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 string,number position):string

Category

string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string string  Yes String into which to insert substring.
position number  Yes position in string after which to insert substring.