Product Site

5.4.11.41. substr

Returns a substring from the buffer content that begins at the n'th character and is of length length, padded with pad if necessary. The n must be a positive integer. If n is greater than the length of the receiving buffer, only pad characters are returned. If you omit length, the remaining buffer content is returned. The default pad character is a blank.