Question:Why substr() is used?
Answer
The substr () function is used to return the part of a string located between a predefined starting offset and length position.