strIns Function

Inserts a text string into another text string.


str strIns(str _text1, str _text2, int _position)

Parameter

Description

_text1

The original text string.

_text2

The text string to insert into _text1.

_position

The position in _text1 where _text2 is to be inserted.

The combined text string.

The strIns function is complementary to the strDel function.

// Returns the text string ABCDEFGH.
strIns("ABFGH","CDE",3);

Community Additions

ADD
Show: