Documentation

functions.php

Table of Contents

Constants

STDERR  = \fopen('php://stderr', 'wb')
STDOUT  = \fopen('php://stdout', 'wb')

Functions

pipe()  : int
buffer()  : string
getInputBufferStream()  : ReadableResourceStream
The php://input buffer stream for the process associated with the currently active event loop.
getOutputBufferStream()  : WritableResourceStream
The php://output buffer stream for the process associated with the currently active event loop.
getStdin()  : ReadableResourceStream
The STDIN stream for the process associated with the currently active event loop.
getStdout()  : WritableResourceStream
The STDOUT stream for the process associated with the currently active event loop.
getStderr()  : WritableResourceStream
The STDERR stream for the process associated with the currently active event loop.
split()  : Traversable<int, string>
Splits the stream into chunks based on a delimiter.
splitLines()  : Traversable<int, string>
Splits the stream into lines.
parseLineDelimitedJson()  : Traversable<int, mixed>

Constants

STDERR

public mixed STDERR = \fopen('php://stderr', 'wb')

STDOUT

public mixed STDOUT = \fopen('php://stdout', 'wb')

Functions

split()

Splits the stream into chunks based on a delimiter.

split(ReadableStream $source, non-empty-string $delimiter[, Cancellation|null $cancellation = null ]) : Traversable<int, string>
Parameters
$source : ReadableStream
$delimiter : non-empty-string
$cancellation : Cancellation|null = null
Return values
Traversable<int, string>

parseLineDelimitedJson()

parseLineDelimitedJson(ReadableStream $source[, bool $associative = false ][, int<1, 2147483647> $depth = 512 ][, int $flags = 0 ][, Cancellation|null $cancellation = null ]) : Traversable<int, mixed>
Parameters
$source : ReadableStream
$associative : bool = false
$depth : int<1, 2147483647> = 512
$flags : int = 0
$cancellation : Cancellation|null = null
Tags
throws
JsonException

If JSON parsing fails

Return values
Traversable<int, mixed>

Traversable of decoded JSON values


        
On this page

Search results