public function right($text, $length)
    {
        if (!$this->isValidLength($text, $length)) return $text;

        $textLength = strlen($text);

        return \substr($text, $textLength - $length, $textLength);
    }
public function right($text, $length)
    {
        if (!$this->isValidLength($text, $length)) return $text;

        $textLength = strlen($text);

        return \substr($text, $textLength - $length, $textLength);
    }
public function right ( $ text , $ length ) { if ( ! $ this -> isValidLength ( $ text , $ length ) ) return $ text ; $ textLength = strlen ( $ text ) ; return \ substr ( $ text , $ textLength - $ length , $ textLength ) ; }
Returns the right part of a string according the given length

@param  string $text
@param  int    $length
@return string
Returns the right part of a string according the given length