substr() is a substring of PHP. It is an inbuilt function which is used to extract a part of the string.
substr()