The substr() function of string object returns a substring beginning at the specified location and length. Use it for example to get sub string start from specified location and length.
Syntax