~1 min read
Encyclopedic overview
Template documentation view] [edit] [history] [purge]
This template selects a sub-string from the target string based on selected indices. The indices are 1-based. If the end index is omitted, it returns the rest of the string. One can also specify negative indices, in which case the substr is selected by counting from the end of the string.
Excerpted from Wikipedia’s “Template:Str sub new” article, available under the CC BY-SA 4.0 licence.