substr

Return substring of a string
     str - input string
     x1  - starting index (0..n)
     x2  - ending index. If x2 == -1, then return substring
           from x1 to the end of string.
Thread-safe function.

string substr(string str, long x1, long x2);

Index | Previous topic | Next topic