phasync
StringStream / write

Method

StringStream::write

Write data to the stream.

Description#

public StringStream::write(
    $string
): int

Parameters#

$string
The string that is to be written.

Return values#

Returns the number of bytes written to the stream. int

Errors / Exceptions#

ExceptionWhen
RuntimeExceptionOn failure.