substring: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Added version.) |
mNo edit summary |
||
Line 19: | Line 19: | ||
</source> | </source> | ||
Returns | Returns | ||
<pre> | |||
is a test | is a test | ||
is | is | ||
</pre> | |||
}} | }} | ||
[[Category:String Function]] | [[Category:String Function]] |
Revision as of 20:43, 29 November 2019
substring() Function
• Introduced in version 1.3b48
Returns the substring of the string from the start to the end indexes. Indexes for strings start at 0. If the end parameter is not specified then the substring extends to the end of the string.
Usage
substring(str, start)
substring(str, start, end)
Examples
[substring("This is a test", 5)]
[substring("This is a test", 5, 7)]
Returns
is a test is