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:
|
||
$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.