right

Synopsis

$ right("string", n)

Returns the right n characters of "string"

Parameters

"string" - the string to get the characters from.

n - number of characters to grab

Returns

A scalar string.

Examples

$string = "this is a test"; $right = right($string, 4); println("Right chars are: $right");

Right chars are: test

See Also