last

Returns the last $n characters of the string.

Description

static last(int $n)

Parameters

  • int $n
    Number of characters to retrieve from the end.

Return Value

static
String being the last $n chars.