UTF::rtrim PHP Method

rtrim() public method

Strip whitespaces from the end of a string
public rtrim ( $str ) : string
$str string
return string
    function rtrim($str)
    {
        return preg_replace('/[\\pZ\\pC]+$/u', '', $str);
    }