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