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

string_cut( "01234567", 3, 5 ); // string [3] "345"