substr
Type: Function · Category: popular
Create a substring from a string
If start is not provided, the beginning of the string is used. If end is not provided, the end of the string are used.
| Argument | Type | Description |
|---|---|---|
str |
string (required) | The string to shorten |
start |
int | Beginning index of substring |
end |
int | End index of substring |
Platforms: macOS, Linux, Windows