Swoole\Buffer::substr
(PECL swoole >= 1.9.0)
Swoole\Buffer::substr — Read data from the memory buffer based on offset and length. Or remove data from the memory buffer.
Description
public function Swoole\Buffer::substr(
int $offset,
int $length = ?,
bool $remove = ?):
string
Parameters
offset
-
The offset.
length
-
The length.
remove
-
Whether to remove the data from the memory buffer.
Return Values
The data or string read from the memory buffer.