public function pad($length = 0, $chars = ' ', $type = STR_PAD_BOTH)
    {
        return new static(str_pad($this->subject, $length, $chars, $type));
    }
public function pad($length = 0, $chars = ' ', $type = STR_PAD_BOTH)
    {
        return new static(str_pad($this->subject, $length, $chars, $type));
    }
public function pad ( $ length = 0 , $ chars = ' ' , $ type = STR_PAD_BOTH ) { return new static ( str_pad ( $ this -> subject , $ length , $ chars , $ type ) ) ; }
Pad a string to a certain length with another string.

@param int $length
@param string $chars
@param int $type
@return static
Pad a string to a certain length with another string .