$mid » History » Version 1
Per Amundsen, 08/11/2015 10:24 AM
| 1 | 1 | Per Amundsen | _1.8.10_ |
|---|---|---|---|
| 2 | |||
| 3 | *$mid(text,S,N)* |
||
| 4 | |||
| 5 | Returns N characters starting at position S in text. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | text - The text to substring. |
||
| 10 | S - The starting position. |
||
| 11 | N - Number of characters to substring. |
||
| 12 | |||
| 13 | *Example* |
||
| 14 | |||
| 15 | <pre> |
||
| 16 | ; Get '6' characters starting at position '6' in the text 'Hello World'. |
||
| 17 | //echo -ag $mid(Hello World,6,6) |
||
| 18 | </pre> |