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