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




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