$instok » History » Version 1
Per Amundsen, 08/10/2015 05:21 AM
| 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 | *Parameters* |
||
| 8 | |||
| 9 | text - Text to add the token to. |
||
| 10 | token - Token to insert. |
||
| 11 | N - The Nth position to insert at. |
||
| 12 | C - The "ASCII":http://www.asciitable.com/ value to tokenize by. |
||
| 13 | |||
| 14 | *Example* |
||
| 15 | |||
| 16 | <pre> |
||
| 17 | ; Insert token 'c' at token position '3' |
||
| 18 | //echo -ag $instok(a.b.d,c,3,46) |
||
| 19 | </pre> |