substr
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. Example:
See Also: substring(). Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display. © 1996-2025 H.E.I. All Rights Reserved. |
![]() |