string_cut [function]
string_cut( string str, int from[, int to[, int flags]] )
returns a part of string str, from and to being positions of the first and last character returned, respectively
- if
to is not specified, to is assumed to be the position of the last character in string str
- if
from or to are negative, they point to characters before the end of string (-1 being the last one)
- available values for
flags:
STRING_NO_REV_INDEX - emit warnings on negative indices, instead of handling them
STRING_STRICT_RANGES - emit warnings on out of bounds from/to values instead of silently ignoring the outside characters
string_cut( "01234567", 3, 5 ); // string [3] "345"