Inserts a substring in a string after a specified character
position. If position = 0, prefixes the substring to the
string.
Lucee Function Reference
Function INSERT
Example
insert(string substring,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 |
---|---|---|---|
substring | string | Yes | String to insert. |
string | string | Yes | String into which to insert substring. |
position | number | Yes | position in string after which to insert substring. |