getLastCharFromString
Returns a number of characters from the end of the string.
Syntax
getLastCharFromString(content, num)
Returns
(string) a number of characters from the end of the string.
Parameters
- content (string)
- source
- num (integer)
- the last numCharacters characters from the end of the string. If the string is shorter than numCharacters, the whole string is returned.
Usage
echo(getLastCharFromString("123456", 2));