Question:Why substr() is used?
Answer The substr() function returns the part of a string located between a predefined starting offset and length positions.
Its prototype : string substr(string str, int start [, int length])
+ Report
Why substr() is used?