首頁 >後端開發 >php教程 >psr7的StreamInterface::getContents()應該是回傳全部內容嗎?

psr7的StreamInterface::getContents()應該是回傳全部內容嗎?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-10-10 11:56:231779瀏覽

<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 指的是不是目前位置之後的內容?

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn