public function read($bytes)
    {
        $data = substr($this->str, $this->pos, $bytes);

        $this->seekto($this->pos + $bytes);

        return $data;
    }
public function read($bytes)
    {
        $data = substr($this->str, $this->pos, $bytes);

        $this->seekto($this->pos + $bytes);

        return $data;
    }
public function read ( $ bytes ) { $ data = substr ( $ this -> str , $ this -> pos , $ bytes ) ; $ this -> seekto ( $ this -> pos + $ bytes ) ; return $ data ; }
Read and returns a part of the string.

@param int $bytes The number of bytes to read

@return string
Read and returns a part of the string .