Inserts a substring in a string after a specified character
position. If position = 0, prefixes the substring to the
string.
Lucee Object Methods Reference
Object Method String.insert
String.insert(string string,number position):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. |