Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamInterface.php

function StreamInterface::write

Write data to the stream.

Parameters

string $string The string that is to be written.:

Return value

int Returns the number of bytes written to the stream.

Throws

\RuntimeException on failure.

5 methods override StreamInterface::write()
AppendStream::write in vendor/guzzlehttp/psr7/src/AppendStream.php
Write data to the stream.
BufferStream::write in vendor/guzzlehttp/psr7/src/BufferStream.php
Writes data to the buffer.
FnStream::write in vendor/guzzlehttp/psr7/src/FnStream.php
Write data to the stream.
PumpStream::write in vendor/guzzlehttp/psr7/src/PumpStream.php
Write data to the stream.
Stream::write in vendor/guzzlehttp/psr7/src/Stream.php
Write data to the stream.

File

vendor/psr/http-message/src/StreamInterface.php, line 115

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function write(string $string) : int;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal