Purpose: Get a substring of a string. In contrast to substring(), the third argument specifies the length. The parameter string must be a string, parameters start and length must be integers. If start is less than 0, it is set to 0.
Return Values: Returns a substr of string starting at position start with length length. Positions are counted from left to right starting with 0. If length is equal to 0 or start is greater than the length of the string, then an empty string is returned.
See Also: substring().
© 1996-2021 H.E.I. All Rights Reserved.