streamWrapper::stream_write() - php 流stream类
streamWrapper::stream_write()
(PHP 4 >= 4.3.2, PHP 5, PHP 7)
Write to stream
说明
publicstreamWrapper::stream_write(string $data): intThis method is called in response tofwrite().
Note:Remember to update the current position of the stream by number of bytes that were successfully written.
参数
$dataShould be stored into the underlying stream.
Note:If there is not enough room in the underlying stream, store as much as possible.
返回值
Should return the number of bytes that were successfully stored, or 0 if none could be stored.
错误/异常
调用此方法失败将给出E_WARNING
(未实现)。
If the return value is greater the length of$data,E_WARNING
will be emitted and the return value will truncated to its length.
参见
fwrite()
写入文件(可安全用于二进制文件)
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!