php8.5
Home/ Manual/ event / eventbuffer/ EventBuffer::substr

EventBuffer::substr

PHP function Edit on GitHub ✎

(PECL event >= 1.6.0)

Subtracts a portion of the buffer data

Description

EventBuffer::substr(int $start, [int $length]): string

Subtracts up to length bytes of the buffer data beginning at start position.

Parameters

start

The start position of data to be subtracted.

length

Maximum number of bytes to subtract.

Return Values

Returns the data subtracted as a string on success, or false on failure.

See Also

  • EventBuffer::read

Source: reference/event/eventbuffer/substr.xml · from the official PHP manual (php/doc-en)