Inserts an element in a list.
listInsertAt(list, position, value [, delimiters])
→ returns string
,
Inserts 'foo' into the list at position 2
listInsertAt("bar,lorem,ipsum", 2, "foo")
Expected Result: bar,foo,lorem,ipsum
Inserts 'foo' into the list with a custom delimiter
listInsertAt("bar|lorem,ipsum|me|something", 2, "foo", "|")
Expected Result: bar|foo|lorem,ipsum|me|something
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.