string.insert()
Inserts a substring in a string after a specified character position. If position = 0, prefixes the substring to the string.
string.insert( substring=string, position=number )
Returns: String
Argument | Description |
---|---|
substring
string,
required
|
String to insert. |
position
number,
required
|
position in string after which to insert substring. |
Examples
insertTest = "Lucee developer";
writeoutput(insertTest.insert("core ",6));