array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.stream-bucket-new.php', 1 => 'stream_bucket_new', 2 => 'Create a new bucket for use on the current stream', ), 'up' => array ( 0 => 'ref.stream.php', 1 => 'Stream 函数', ), 'prev' => array ( 0 => 'function.stream-bucket-make-writeable.php', 1 => 'stream_bucket_make_writeable', ), 'next' => array ( 0 => 'function.stream-bucket-prepend.php', 1 => 'stream_bucket_prepend', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stream/functions/stream-bucket-new.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stream_bucket_new

(PHP 5, PHP 7, PHP 8)

stream_bucket_new Create a new bucket for use on the current stream

说明

stream_bucket_new(resource $stream, string $buffer): StreamBucket
警告

本函数还未编写文档,仅有参数列表。

更新日志

版本 说明
8.4.0 此函数现在返回 StreamBucket 实例;之前返回 stdClass