strPoke Function

Overwrites part of a text string with another text string.


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

Parameter

Description

_text1

The original string.

_text2

The string to replace part of _text1 with.

_position

The position in _text1 at which to begin replacing the characters.

The new text string.

The new string can be longer than the original string.

// Returns the text string "12AAA678".
strPoke("12345678","AAA",3);

Community Additions

ADD
Show: