public function substring($start, $length = null)
    {

        if ($length == null) {
            $substring = substr($this->value, $start);
        } else {
            $substring = substr($this->value, $start, $length);
        }

        $this->value = $substring;

        return $this;


    }
public function substring($start, $length = null)
    {

        if ($length == null) {
            $substring = substr($this->value, $start);
        } else {
            $substring = substr($this->value, $start, $length);
        }

        $this->value = $substring;

        return $this;


    }
public function substring ( $ start , $ length = null ) { if ( $ length == null ) { $ substring = substr ( $ this -> value , $ start ) ; } else { $ substring = substr ( $ this -> value , $ start , $ length ) ; } $ this -> value = $ substring ; return $ this ; }
Unterschied zu getSubstring !!!
Unterschied zu getSubstring !!!