public function tokenize($string)
    {
        if(!$this->length) {
            return array(substr($string, $this->startPosition));
        } else {
            return array(substr($string, $this->startPosition, $this->length));
        }
    }
public function tokenize($string)
    {
        if(!$this->length) {
            return array(substr($string, $this->startPosition));
        } else {
            return array(substr($string, $this->startPosition, $this->length));
        }
    }
public function tokenize ( $ string ) { if ( ! $ this -> length ) { return array ( substr ( $ string , $ this -> startPosition ) ) ; } else { return array ( substr ( $ string , $ this -> startPosition , $ this -> length ) ) ; } }
Return array with single element
@param string $string
@return array
Return array with single element