$instok » History » Version 3
Per Amundsen, 12/14/2016 11:51 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$instok(text,token,N,C)* |
||
4 | |||
5 | Inserts token into the Nth position in text, even if it already exists in text. |
||
6 | |||
7 | 2 | Per Amundsen | _N can be a negative value._ |
8 | |||
9 | 1 | Per Amundsen | *Parameters* |
10 | |||
11 | text - Text to add the token to. |
||
12 | token - Token to insert. |
||
13 | N - The Nth position to insert at. |
||
14 | C - The "ASCII":http://www.asciitable.com/ value to tokenize by. |
||
15 | |||
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | 3 | Per Amundsen | ; Insert token 'c' at token position '3'. |
20 | 1 | Per Amundsen | //echo -ag $instok(a.b.d,c,3,46) |
21 | </pre> |