PHP 8.1.28 Released!

Swoole\Client::send

(PECL swoole >= 1.9.0)

Swoole\Client::sendSend data to the remote TCP socket.

Açıklama

public Swoole\Client::send(string $data, string $flag = ?): int

Bağımsız Değişkenler

data

The data to send which can be string or binary

flag

Dönen Değerler

If the client sends data successfully, it returns the length of data sent. Or it returns false and sets $swoole_client->errCode. For sync client, there is no limit for the data to send. For async client, The limit for the data to send is socket_buffer_size.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top