...
Returns the sub-string from "string".
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// Extract some substrings |
...
string $str = "This is some text"; |
...
string $subStr; |
...
...
// Extract the first 7 characters |
...
$subStr = `strLeft $str 7`; |
...
print $subStr; |
...
// Should be "This is" |
...
...
// Extract the first 17 characters |
...
$subStr = `strLeft $str 17`; |
...
print $subStr; |
...
// Should be same as $str |
Additional information
Related commands
...