Onetastic Macro Documentation >
>
>
String_Insert String_Insert
Inserts a string into another string at a specified position and returns the resulting string.
Syntax
String String_Insert(
String string,
String other,
Numeric offset)
Parameters
- String string
- String to insert into.
- String other
- String to insert.
- Numeric offset
- Offset to insert at. If non-negative, the string will be inserted at this number of characters counted from the beginning of the string. If negative, the string will be inserted at this number of characters counted from the end of the string.
Examples
$string = "the quick brown fox "
$insert = "JUMPED"
String_Insert($string, $insert, 0)
String_Insert($string, $insert, String_Length($string))
String_Insert($string, $insert, 7)
String_Insert($string, $insert, -5)
|