Skip to content
EntityQ7299935· pop 50

Template:Str sub new

Sign in to save

Wikimedia template

~1 min read

Article

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.

Categories