Heim  >  Artikel  >  Backend-Entwicklung  >  psr7的StreamInterface::getContents()应该是返回全部内容吗?

psr7的StreamInterface::getContents()应该是返回全部内容吗?

WBOY
WBOYOriginal
2016-10-10 11:56:231707Durchsuche

<code>/**
     * Returns the remaining contents in a string
     *
     * @return string
     * @throws \RuntimeException if unable to read or an error occurs while
     *     reading.
     */
    public function getContents();</code>

这里的 remaining contents 指的是不是当前位置之后的内容?

回复内容:

<code>/**
     * Returns the remaining contents in a string
     *
     * @return string
     * @throws \RuntimeException if unable to read or an error occurs while
     *     reading.
     */
    public function getContents();</code>

这里的 remaining contents 指的是不是当前位置之后的内容?

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn