src/Generics/Streams/MemoryStream.php
public function slurp(): string
    {
        $str = "";
        while ($this->ready()) {
            $str .= $this->read($this->count());
        }
        
        return $str;
    }
public function slurp(): string
    {
        $str = "";
        while ($this->ready()) {
            $str .= $this->read($this->count());
        }
        
        return $str;
    }
public function slurp ( ) : string { $ str = "" ; while ( $ this -> ready ( ) ) { $ str .= $ this -> read ( $ this -> count ( ) ) ; } return $ str ; }
Retrieve the whole memory string content

@return string
Retrieve the whole memory string content