OpenSwoole\Client->sendto

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Client->sendto(string $ip, int $port, mixed $data)

Parameters

ip

The remote IP.

port

The remote port.

data

The data to send.

Return

Description

Send data to the remote IP and port.

Example

Last updated on February 28, 2026