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
startThe start position of data to be subtracted.
lengthMaximum number of bytes to subtract.
Return Values
Returns the data subtracted as a string on success, or false on failure.
See Also
EventBuffer::read