EventBuffer::substr

Subtracts a portion of the buffer data

Description

public string EventBuffer::substr( int $start , int $length = ?)

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