src/Types/String.php
public function substr($start, $length = null)
    {
        $str = mb_substr($this->value, $start, $length);

        return static::make($str);
    }
public function substr($start, $length = null)
    {
        $str = mb_substr($this->value, $start, $length);

        return static::make($str);
    }
public function substr ( $ start , $ length = null ) { $ str = mb_substr ( $ this -> value , $ start , $ length ) ; return static :: make ( $ str ) ; }
Get substring from the current string

@param int $start
@param null $length
@return \Ionix\Types\String
Get substring from the current string