PHP function stream_socket_sendto()

Availability in PHP 5.0

Sends a message to a socket, whether it is connected or not

Parameters

Parameter Data type Default value Note
$socket resource not The socket to send data to.
$data string not The data to be sent.
$flags int null, The value of flags can be any combination of the following: possible values for flags
STREAM_OOB Process OOB (out-of-band) data.
$address string null The address specified when the socket stream was created will be used unless an alternate address is specified in address.

Return values

int

A result code, as an integer.

Other resources

Official documentation for stream-socket-sendto

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.