public function testRtrim() { $this->eq(s::rtrim(' a '), ' a'); $this->eq(s::rtrim('abcxyzcba', 'abc'), 'abcxyz'); $this->eq(s::rtrim(''), ''); }
public function rtrim($chars = null) { return new self(s::rtrim($this->value, self::unwrap($chars))); }